Commit 7ab284a1 authored by gsell's avatar gsell
Browse files

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

parent 6ae2c7ba
#!/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"
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
source "$(dirname $0)/../lib/libem.bash" source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
"${EM_SRCDIR}"/configure \ "${EM_SRCDIR}"/configure \
--prefix="${PREFIX}" \ --prefix="${PREFIX}" \
--enable-shared \ --enable-shared \
......
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
source "$(dirname $0)/../lib/libem.bash" source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
rm -f CMakeCache.txt rm -f CMakeCache.txt
cmake \ cmake \
-DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_BUILD_TYPE=RELEASE \
......
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
source "$(dirname $0)/../lib/libem.bash" source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
: # nothing to configure CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
} }
function em.build() { function em.build() {
......
...@@ -5,6 +5,13 @@ source "$(dirname $0)/../lib/libem.bash" ...@@ -5,6 +5,13 @@ source "$(dirname $0)/../lib/libem.bash"
declare -rx AR=ar declare -rx AR=ar
function em.configure() { function em.configure() {
CC=$MPICC
CXX=$MPICXX
F77=$MPIF77
F90=$MPIF90
FC=$MPIFC
FORTRAN=$MPIFORTRAN
BLAS_PREFIX=$MATHLIB_PREFIX BLAS_PREFIX=$MATHLIB_PREFIX
LAPACK_PREFIX=$MATHLIB_PREFIX LAPACK_PREFIX=$MATHLIB_PREFIX
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment