Last active
April 21, 2017 19:34
-
-
Save masoudbehzadinasab/468388ae4e743523451b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
export INSTALL_LOCATION=$HOME/projects/Peridigm | |
module load intel mvapich2 | |
module load cmake boost | |
export F77='which mpif90 || /bin/true' | |
export COPTFLAGS="-O1" | |
export CC='which mpicc || /bin/true' | |
export CXX='which mpicxx || /bin/true' | |
module load cxx11 | |
rm -f CMakeCache.txt | |
cmake -VV \ | |
-D CMAKE_INSTALL_PREFIX:PATH=$INSTALL_LOCATION \ | |
-D CMAKE_CXX_COMPILER:STRING='mpicxx' \ | |
-D CMAKE_C_COMPILER:STRING='mpicc' \ | |
-D CMAKE_BUILD_TYPE:STRING=Release \ | |
-D CMAKE_C_FLAGS:STRING="${COPTFLAGS}" \ | |
-D CMAKE_CXX_FLAGS:STRING="${COPTFLAGS} -std=c++11" \ | |
-D TRILINOS_DIR:PATH=$HOME/projects/trilinos \ | |
-D BOOST_ROOT:STRING=$TACC_BOOST_DIR \ | |
.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment