Compiler/SuperLU
- support for version 5
This commit is contained in:
1
Compiler/SuperLU/5/variants
Normal file
1
Compiler/SuperLU/5/variants
Normal file
@@ -0,0 +1 @@
|
||||
SuperLU/5.2.1 unstable gcc/4.8.5 b:OpenBLAS/0.2.19 b:cmake/3.6.3
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
SOURCE_URL="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_$V.tar.gz"
|
||||
|
||||
if (( V_MAJOR < 5 )); then
|
||||
pbuild::configure() {
|
||||
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
|
||||
PLAT =
|
||||
@@ -25,10 +28,20 @@ LOADOPTS = -fopenmp
|
||||
CDEFS = -DAdd_
|
||||
EOF
|
||||
}
|
||||
else
|
||||
pbuild::configure() {
|
||||
cmake "${MODULE_SRCDIR}" \
|
||||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
|| exit 1
|
||||
|
||||
}
|
||||
fi
|
||||
|
||||
pbuild::build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
mkdir -p "${PREFIX}/lib"
|
||||
if (( V_MAJOR < 5 )); then
|
||||
cd "${MODULE_SRCDIR}"
|
||||
mkdir -p "${PREFIX}/lib"
|
||||
fi
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user