Files
MX_Pmodule/Compiler/openmpi/build
Achim Gsell e5032c73e6 Compiler/openmpi/build:
- build with CUDA support on Linux
2018-02-01 11:25:18 +01:00

31 lines
680 B
Plaintext
Executable File

#!/usr/bin/env modbuild
SOURCE_URL="http://www.open-mpi.org/software/ompi/v${V_MAJOR}.${V_MINOR}/downloads/openmpi-$V.tar.bz2"
pbuild::configure() {
declare -a config_args=()
case "$OS" in
Linux )
config_args+=( "--with-cuda=${CUDA_HOME}" )
;;
esac
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-mpi-cxx \
--enable-mpi-cxx-seek \
--enable-mpi-f90 \
--enable-mpi-profile \
--enable-orterun-prefix-by-default \
--enable-shared \
--enable-smp-locks \
--with-sge=yes \
--with-slurm=yes \
"${config_args[@]}" \
|| exit 1
}
pbuild::add_to_group 'Compiler'
pbuild::set_docfiles 'AUTHORS' 'LICENSE' 'NEWS' 'README'
pbuild::make_all