Created
April 18, 2016 14:16
-
-
Save dmarce1/a729adb59de81201ec4566db97e3419a to your computer and use it in GitHub Desktop.
octotiger build script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -x | |
function pause(){ | |
read -p "$*" | |
} | |
source /usr/local/packages/compilers/Intel/parallel_studio_xe_2015/composer_xe_2015.0.090/bin/compilervars.sh intel64 | |
#source /usr/local/packages/compilers/Intel/parallel_studio_xe_2015/composer_xe_2015.0.090/bin/releasegervars.sh intel64 | |
source /usr/local/compilers/Intel/parallel_studio_xe_2015/impi/5.0.1.035/bin64/mpivars.sh | |
rm -r -f hpx_build | |
rm -r -f release | |
mkdir hpx_build | |
cd hpx_build | |
echo "Press any key to start building hwloc" | |
#pause | |
wget https://www.open-mpi.org/software/hwloc/v1.11/downloads/hwloc-1.11.2.tar.gz --no-check-certificate | |
tar -xvf hwloc-1.11.2.tar.gz | |
cd hwloc-1.11.2 | |
./configure --prefix=/work/$USER/release/ CC="icc -gcc-name=gcc " CFLAGS="-O3 -ip -xHOST" | |
make -j40 install | |
cd .. | |
echo "Press any key to start building boost" | |
#pause | |
#wget https://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz/download --no-check-certificate | |
cp ~/boost_1_59_0.tar.gz . | |
cp /work/dmarce1/boost_1_59_0.tar.gz . | |
rm -r boost_1_59_0 | |
tar -xvf boost_1_59_0.tar.gz | |
cd boost_1_59_0 | |
./bootstrap.sh --prefix=/work/$USER/release | |
./b2 toolset=intel variant=release cxxflags="-gxx-name=g++ -O3 -ip -xHOST " install -j40 | |
cd .. | |
echo "Press any key to start building hpx" | |
#pause | |
mkdir hpx | |
git clone https://github.com/STEllAR-GROUP/hpx | |
cd hpx | |
git checkout e657426d705dd2292109ff18e271ccaa5339f7ef | |
cd .. | |
rm -r build | |
mkdir build | |
cd build | |
cmake \ | |
-DCMAKE_CXX_COMPILER="/usr/local/compilers/Intel/parallel_studio_xe_2015/impi/5.0.1.035/intel64/bin/mpiicpc" \ | |
-DCMAKE_C_COMPILER="/usr/local/compilers/Intel/parallel_studio_xe_2015/impi/5.0.1.035/intel64/bin/mpiicc" \ | |
-DCMAKE_C_FLAGS="-mt_mpi -gcc-name=gcc -O3 -ip -xHOST " \ | |
-DCMAKE_CXX_FLAGS="-mt_mpi -std=c++11 -gxx-name=g++ -O3 -ip -xHOST " \ | |
-DCMAKE_BUILD_TYPE=release \ | |
-DHPX_WITH_PARCELPORT_MPI=ON \ | |
-DCMAKE_INSTALL_PREFIX="/work/$USER/release/" \ | |
-DBOOST_ROOT="/work/$USER/release/" \ | |
-DHWLOC_ROOT="/work/$USER/release/" \ | |
-DHPX_WITH_MALLOC=custom \ | |
-DHPX_WITH_HWLOC=ON \ | |
-DHPX_WITH_EXAMPLES=OFF \ | |
-DHPX_WITH_TESTS=OFF\ | |
../hpx | |
make -j40 install | |
echo "Press any key to start building octotiger" | |
pause | |
cd /work/$USER/ | |
rm -rf octotiger | |
git clone https://github.com/dmarce1/octotiger | |
cd octotiger | |
wget phys.lsu.edu/~dmarcel/X.0.chk.gz | |
wget phys.lsu.edu/~dmarcel/pbs_script | |
cp pbs_script ~/octotiger_script | |
gunzip -f X.0.chk.gz | |
mv X.0.chk restart.chk | |
set -x | |
rm -r build | |
mkdir build | |
cd build | |
cmake -DCMAKE_CXX_COMPILER=mpiicpc -DCMAKE_PREFIX_PATH=/work/$USER/release .. \ | |
-DCMAKE_CXX_COMPILER="/usr/local/compilers/Intel/parallel_studio_xe_2015/impi/5.0.1.035/intel64/bin/mpiicpc" \ | |
-DCMAKE_C_COMPILER="/usr/local/compilers/Intel/parallel_studio_xe_2015/impi/5.0.1.035/intel64/bin/mpiicc" \ | |
-DCMAKE_BUILD_TYPE=release \ | |
-DCMAKE_C_FLAGS="-xHOST -mt_mpi -gcc-name=gcc -O3 -ip " \ | |
-DCMAKE_CXX_FLAGS="-xHOST -std=c++11 -mt_mpi -gxx-name=g++ -O3 -ip " | |
make -j40 | |
cp octotiger .. | |
cd .. | |
chmod 755 octotiger_script | |
cd | |
qsub ./octotiger_script | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment