all build scripts moved to a sub-directory according their name
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
CC=$MPICC CXX=$MPICXX cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
"${MODULE_SRCDIR}"
|
||||
}
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}"
|
||||
em.set_docfiles 'license.txt' 'README.txt'
|
||||
em.make_all
|
||||
|
||||
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
module use unstable
|
||||
|
||||
# add -fopenmp to CC and CXX, if you want to compile with OpenMP
|
||||
function em.configure() {
|
||||
cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
-DENABLE_SAAMG_SOLVER=TRUE \
|
||||
"${MODULE_SRCDIR}"
|
||||
}
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI}"
|
||||
em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'boost' 'hdf5' 'H5hut' 'trilinos' 'ippl' 'gsl'
|
||||
em.set_supported_compilers 'gcc/4.7' 'gcc/4.8'
|
||||
em.make_all
|
||||
|
||||
Executable
+48
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
|
||||
PLAT =
|
||||
DSuperLUroot = \${PREFIX}
|
||||
DSUPERLULIB = \$(DSuperLUroot)/lib/libsuperlu_dist.a
|
||||
BLASDEF = -DUSE_VENDOR_BLAS
|
||||
BLASLIB = \${OPENBLAS_PREFIX}/lib/libopenblas.a
|
||||
METISLIB = \${PARMETIS_PREFIX}/lib/libmetis.a
|
||||
PARMETISLIB = \${PARMETIS_PREFIX}/lib/libparmetis.a
|
||||
FLIBS =
|
||||
LIBS = \$(DSUPERLULIB) \$(BLASLIB) \$(PARMETISLIB) \$(METISLIB)
|
||||
ARCH = ar
|
||||
ARCHFLAGS = cr
|
||||
RANLIB = ranlib
|
||||
CC = mpicc
|
||||
CFLAGS = -pipe -O3
|
||||
NOOPTS =
|
||||
FORTRAN = mpif90
|
||||
F90FLAGS =
|
||||
LOADER = mpif90
|
||||
LOADOPTS =
|
||||
CDEFS = -DAdd__
|
||||
EOF
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
mkdir -p "${PREFIX}/lib"
|
||||
make
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
make install
|
||||
mkdir -p "${PREFIX}/include"
|
||||
install -m 0444 "${MODULE_SRCDIR}"/SRC/*.h "${PREFIX}/include"
|
||||
}
|
||||
|
||||
|
||||
em.add_to_family 'MPI'
|
||||
em.set_runtime_dependencies "${COMPILER}" "${MPI} 'OpenBLAS' 'parmetis'"
|
||||
em.set_build_dependencies "${COMPILER}" "${MPI}" 'OpenBLAS' 'parmetis'
|
||||
em.set_docfiles 'README'
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
Reference in New Issue
Block a user