From d063fe30d0cbe63ba512758a3eec9fb1c685747c Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 17 Jul 2014 13:08:17 +0200 Subject: [PATCH] SuperLU: added --- scripts/SuperLU.build | 50 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 scripts/SuperLU.build diff --git a/scripts/SuperLU.build b/scripts/SuperLU.build new file mode 100755 index 0000000..04048ad --- /dev/null +++ b/scripts/SuperLU.build @@ -0,0 +1,50 @@ +#!/bin/bash + +source "$(dirname $0)/../lib/libem.bash" + +function em.configure() { + cat < "${EM_SRCDIR}/make.inc" +PLAT = +SuperLUroot = \${PREFIX} +SUPERLULIB = \$(SuperLUroot)/lib/libsuperlu.a +BLASDEF = -DUSE_VENDOR_BLAS +BLASLIB = \${OPENBLAS_PREFIX}/lib/libopenblas.a +TMGLIB = libtmglib.a +METISLIB = +PARMETISLIB = +FLIBS = +LIBS = \$(DSUPERLULIB) \$(BLASLIB) \$(PARMETISLIB) \$(METISLIB) +ARCH = ar +ARCHFLAGS = cr +RANLIB = ranlib +CC = ${CC} +CFLAGS = -pipe -O3 +NOOPTS = +FORTRAN = ${FC} +F90FLAGS = +LOADER = ${FC} +LOADOPTS = -fopenmp +CDEFS = -DAdd_ +EOF +} + +function em.build() { + cd "${EM_SRCDIR}" + mkdir -p "${PREFIX}/lib" + make +} + +function em.install() { + make install + mkdir -p "${PREFIX}/include" + install -m 0444 "${EM_SRCDIR}"/SRC/*.h "${PREFIX}/include" +} + +function em.install_doc() { + install -m 0444 README "${DOCDIR}" +} + +em.add_to_family 'MPI' +em.set_runtime_dependencies "${COMPILER}" +em.set_build_dependencies "${COMPILER}" 'OpenBLAS' +em.make_all