all modules in MPI: set compiler variables like CC in em.configure()

This commit is contained in:
2014-05-13 15:22:23 +02:00
parent 6ae2c7ba8c
commit 7ab284a1f4
5 changed files with 36 additions and 1 deletions

9
scripts/all.build Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
source "$(dirname $0)/../lib/lib.bash"
[[ -z $MODULESHOME ]] && die 1 "Module environment not loaded"
while read family rest; do
$(dirname $0)/family.build ${family}
done < "${EM_ETCDIR}/family.conf"

View File

@@ -3,6 +3,13 @@
source "$(dirname $0)/../lib/libem.bash"
function em.configure() {
CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
"${EM_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-shared \

View File

@@ -3,6 +3,13 @@
source "$(dirname $0)/../lib/libem.bash"
function em.configure() {
CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
rm -f CMakeCache.txt
cmake \
-DCMAKE_BUILD_TYPE=RELEASE \

View File

@@ -3,7 +3,12 @@
source "$(dirname $0)/../lib/libem.bash"
function em.configure() {
: # nothing to configure
CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
}
function em.build() {

View File

@@ -5,6 +5,13 @@ source "$(dirname $0)/../lib/libem.bash"
declare -rx AR=ar
function em.configure() {
CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
BLAS_PREFIX=$MATHLIB_PREFIX
LAPACK_PREFIX=$MATHLIB_PREFIX