Boost is a set of C++ libraries that provide helpful data structures and numerous support functions in a wide range of aspects of programming, such as, image processing, gpu programming, concurrent programming, along with many algorithms. Boost is portable and performs well on a wide variety of platforms.
Availability & Restrictions
Versions
The following version of Boost are available on OSC systems:
Version | Owens | Pitzer | Ascend | Cardinal | Notes |
---|---|---|---|---|---|
1.53.0 | System Install | No Module Needed | |||
1.56.0 | |||||
1.63.0 | X(GI) | ||||
1.64.0 | X(GI) | ||||
1.67.0 | X(GI) | X(GI) | |||
1.72.0 | X(GI)* | X(GI)* | |||
1.75.0 | X(I) | X(I) | |||
1.78.0 | X(GI)* | ||||
1.83.0 | X |
You can use module spider boost
to view available modules for a given machine. Feel free to contact OSC Help if you need other versions for your work.
Access
Boost is available to all OSC users. If you have any questions, please contact OSC Help.
Publisher/Vendor/Repository and License Type
Beman Dawes, David Abrahams, Rene Rivera/ Open source
Usage
Usage on Owens
Set-up
Initalizing the system for use of the Boost library is independent of the compiler you are using. To load the boost module run the following command:
module load boost
Building With Boost
The following environment variables are setup when the Boost library is loaded:
VARIABLE | USE |
---|---|
$BOOST_CFLAGS |
Use during your compilation step for C++ programs. |
$BOOST_LIBS |
Use during your link step. |
Below is a set of example commands used to build and run a file called example2.cpp
. First copy the example2.cpp and jayne.txt from Oakley into your home directory with the following commands:
cp /usr/local/src/boost/boost-1_56_0/test.osc/example2.cpp ~ cp /usr/local/src/boost/boost-1_56_0/test.osc/jayne.txt ~
Then compile and test the program with the folllowing commands:
g++ example2.cpp -o boostTest -lboost_regex ./boostTest < jayne.txt
Usage on Pitzer
Set-up
Initalizing the system for use of the Boost library is independent of the compiler you are using. To load the boost module run the following command:
module load boost
Building With Boost
The following environment variables are setup when the Boost library is loaded:
VARIABLE | USE |
---|---|
$BOOST_CFLAGS |
Use during your compilation step for C++ programs. |
$BOOST_LIBS |
Use during your link step. |
Below is a set of example commands used to build and run a file called example2.cpp
. First copy the example2.cpp and jayne.txt from Oakley into your home directory with the following commands:
cp /usr/local/src/boost/boost-1_56_0/test.osc/example2.cpp ~ cp /usr/local/src/boost/boost-1_56_0/test.osc/jayne.txt ~
Then compile and test the program with the folllowing commands:
g++ example2.cpp -o boostTest -lboost_regex ./boostTest < jayne.txt
Usage on Ascend
Set-up
Initalizing the system for use of the Boost library is independent of the compiler you are using. To load the boost module run the following command:
module load boost
Building With Boost
The following environment variables are setup when the Boost library is loaded:
VARIABLE | USE |
---|---|
$BOOST_CFLAGS |
Use during your compilation step for C++ programs. |
$BOOST_LIBS |
Use during your link step. |
Below is a set of example commands used to build and run a file called example2.cpp
. First copy the example2.cpp and jayne.txt from Oakley into your home directory with the following commands:
cp /usr/local/src/boost/boost-1_56_0/test.osc/example2.cpp ~ cp /usr/local/src/boost/boost-1_56_0/test.osc/jayne.txt ~
Then compile and test the program with the folllowing commands:
g++ example2.cpp -o boostTest -lboost_regex ./boostTest < jayne.txt
Further Reading