Created
April 4, 2016 15:02
-
-
Save dmarce1/9acd79d6e3d143d2d0679974cf8fb3ad to your computer and use it in GitHub Desktop.
script for octotiger
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 | |
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 | |
wget https://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.gz/download --no-check-certificate | |
rm -r boost_1_57_0 | |
tar -xvf boost_1_57_0.tar.gz | |
cd boost_1_57_0 | |
./bootstrap.sh --prefix=/work/$USER/release | |
./b2 toolset=intel variant=release cflags="-xHOST -O3" cxxflags="-xHOST -O3" install -j20 | |
cd .. | |
mkdir hpx | |
git clone https://github.com/STEllAR-GROUP/hpx | |
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="-xHOST -O3 -mt_mpi -gcc-name=gcc" \ | |
-DCMAKE_CXX_FLAGS="-xHOST -O3 -mt_mpi -std=c++11 -gxx-name=gcc" \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DHPX_WITH_PARCELPORT_MPI=ON \ | |
-DCMAKE_INSTALL_PREFIX="/work/$USER/release/" \ | |
-DBOOST_ROOT="/work/$USER/release/" \ | |
-DHPX_WITH_MALLOC=custom \ | |
-DHPX_WITH_HWLOC=ON \ | |
-DHPX_WITH_EXAMPLES=OFF \ | |
-DHPX_WITH_TESTS=OFF\ | |
../hpx | |
make -j20 install | |
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_C_FLAGS="-xHOST -O3 -mt_mpi -gcc-name=gcc" \ | |
-DCMAKE_CXX_FLAGS="-xHOST -O3 -std=c++11 -mt_mpi -gxx-name=g++" | |
make -j20 | |
cp octotiger .. | |
cd .. | |
#chmod 755 octotiger_script | |
#./octotiger_script | |
ssh smic "qsub ~/octotiger_script" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment