Files
MX_Pmodule/MPI/OPAL/build
Achim Gsell 2cb58855bb MPI/OPAL
- variants for 1.5.1-20170217 and 1.5.2 added
- compile with DKS enabled
2017-04-24 08:01:34 +02:00

28 lines
487 B
Plaintext
Executable File

#!/usr/bin/env modbuild
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