Files
MX_Pmodule/MPI/OPAL/build
Achim Gsell 8f661076d4 MPI/OPAL/build
- SOURCE_URL added
2017-11-20 17:36:05 +01:00

30 lines
561 B
Plaintext
Executable File

#!/usr/bin/env modbuild
SOURCE_URL='http://amas.web.psi.ch/Downloads/OPAL/OPAL-1.6.0rc6.tar.bz2'
config_args=()
case ${OS} in
Darwin )
:
;;
Linux )
config_args+=( '-DENABLE_DKS=ON' )
;;
esac
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
pbuild::configure() {
cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_SAAMG_SOLVER=TRUE \
"${config_args[@]}" \
"${MODULE_SRCDIR}"
}
pbuild::add_to_group 'MPI'
pbuild::set_supported_compilers 'gcc/4.7' 'gcc/4.8' 'gcc/4.9' 'gcc/5.4'
pbuild::make_all