| 1 | {{{ #!sh |
| 2 | #!/bin/sh |
| 3 | |
| 4 | module --force purge |
| 5 | module load intel-ics |
| 6 | module load intel-impi |
| 7 | |
| 8 | BASE=$(pwd) |
| 9 | |
| 10 | BOOST_PACKAGE=boost_1_61_0.tar.gz |
| 11 | [ -f ${BOOST_PACKAGE} ] && echo "package found" || wget http://downloads.sourceforge.net/project/boost/boost/1.61.0/${BOOST_PACKAGE} |
| 12 | |
| 13 | rm -rf boost_1_61_0_knl |
| 14 | tar -xzf ${BOOST_PACKAGE} |
| 15 | mv boost_1_61_0 boost_1_61_0_knl |
| 16 | |
| 17 | mkdir ${BASE}/install |
| 18 | cd boost_1_61_0_knl |
| 19 | |
| 20 | CC=icc |
| 21 | CXX=icpc |
| 22 | CFLAGS="-xMIC-AVX512" |
| 23 | CXXFLAGS="-xMIC-AVX512" |
| 24 | LDFLAGS="-xMIC-AVX512" |
| 25 | |
| 26 | ./bootstrap.sh --with-toolset=intel-linux --prefix=${BASE}/install/knl |
| 27 | ./bjam toolset=intel --disable-icu cflags="$CFLAGS" cxxflags="$CXXFLAGS" linkflags="$LDFLAGS" --without-iostreams --without-python |
| 28 | ##./b2 toolset=intel-linux |
| 29 | ./b2 install --prefix=${BASE}/install/knl |
| 30 | }}} |