-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall_boost.txt
24 lines (21 loc) · 1 KB
/
install_boost.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Default SMP configuration
./boostrap.sh
./b2 install --prefix=/opt/lib/boost/x.xx threading=multi --layout=tagged -j32 --with-python # needs python environment in LD_LIBRARY_PATH
## add python
using python
: 3.6
: /usr/nic/apps/python_da/3.6.6/bin/python3
: /usr/nic/apps/python_da/3.6.6/include/python3.6m
: /usr/nic/apps/python_da/3.6.6/lib
;
### If /lstr/applications/focus_v7/libs/boost/1.68.0_gcc485/lib/libboost_python36-mt.so exists, libboost_python search in cmake may fail.
### Then edit CMakeLists.txt, COMPONENTS python-py34 => COMPONENTS python36-mt
# Using MPI
- Ref: https://www.boost.org/doc/libs/1_61_0/doc/html/mpi/getting_started.html
- After running boostrap.sh, add "
using mpi
: /share/ompi/4.0.0/bin/mpicc ;
" into project-config.jam
## Nitty Gritty
- For boost 1.61, the combo of gcc/5.3 + mvapich/2.3 might not work - produces ompi_mpi* library, which cannot be used
- For boost 1.61, the combo of gcc/5.3 + openmpi/4.1.0 didn't work - libboost_mpi was not made. Use openmpi/2.0.0