Created
July 11, 2020 22:11
-
-
Save pguthrey/6016235d3730280227cfbee6a211ba12 to your computer and use it in GitHub Desktop.
Script for installing superlu_dist as a submodule
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
#!/bin/bash | |
# Load recent modules | |
ml gcc/8.1.0 | |
ml cmake/3.14.5 | |
# Update submodules and their dependencies | |
git submodule update --init --recursive superlu_dist | |
# Enter superLU and delete previous builds+installs | |
cd superlu_dist | |
rm -rf build | |
rm make.inc | |
# Make the necessary directories | |
mkdir build | |
cd build | |
# Build superLU | |
cmake .. \ | |
-DCMAKE_C_FLAGS="-std=c99 -g -DPRNTlevel=0 -DDEBUGlevel=0" \ | |
-DCMAKE_C_COMPILER=mpicc \ | |
-DCMAKE_CXX_COMPILER=mpicxx \ | |
-DCMAKE_CXX_FLAGS="-std=c++11" \ | |
-DBUILD_SHARED_LIBS=ON \ | |
-DCMAKE_INSTALL_PREFIX=. \ | |
-DTPL_ENABLE_LAPACKLIB=FALSE \ | |
-DTPL_ENABLE_PARMETISLIB=FALSE \ | |
-DTPL_ENABLE_COMBBLASLIB=FALSE ../ | |
# Prepare superLU for installation | |
make -j 200 | |
#Install superLU | |
make install -j 200 | |
# Test superLU | |
make test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment