all buildblocks moved one level up
This commit is contained in:
Executable
+46
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::configure() {
|
||||
cat <<EOF > "${MODULE_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
|
||||
}
|
||||
|
||||
pbuild::build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
mkdir -p "${PREFIX}/lib"
|
||||
make
|
||||
}
|
||||
|
||||
pbuild::install() {
|
||||
make install
|
||||
mkdir -p "${PREFIX}/include"
|
||||
install -m 0444 "${MODULE_SRCDIR}"/SRC/*.h "${PREFIX}/include"
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'Compiler'
|
||||
pbuild::set_runtime_dependencies "${COMPILER}"
|
||||
pbuild::set_build_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
pbuild::set_docfiles 'README'
|
||||
pbuild::make_all
|
||||
pbuild::cleanup_src
|
||||
@@ -0,0 +1,25 @@
|
||||
#%Module1.0
|
||||
|
||||
set whatis "library for direct solution of large, sparse, nonsymmetric systems of linear equations."
|
||||
set url "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/"
|
||||
set license "BSD, see \$SUPERLU_DIR/share/doc/SuperLU/README"
|
||||
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
|
||||
set help "
|
||||
SuperLU is a general purpose library for the direct solution of large,
|
||||
sparse, nonsymmetric systems of linear equations on high performance
|
||||
machines. The library is written in C and is callable from either C or
|
||||
Fortran. The library routines will perform an LU decomposition with
|
||||
partial pivoting and triangular system solves through forward and back
|
||||
substitution. The LU factorization routines can handle non-square
|
||||
matrices but the triangular solves are performed only for square
|
||||
matrices. The matrix columns may be preordered (before factorization)
|
||||
either through library or user supplied routines. This preordering for
|
||||
sparsity is completely separate from the factorization. Working
|
||||
precision iterative refinement subroutines are provided for improved
|
||||
backward stability. Routines are also provided to equilibrate the
|
||||
system, estimate the condition number, calculate the relative backward
|
||||
error, and estimate error bounds for the refined solutions.
|
||||
"
|
||||
|
||||
source $env(PSI_LIBMODULES)
|
||||
Reference in New Issue
Block a user