all build scripts moved to a sub-directory according their name
This commit is contained in:
22
scripts/Compiler/H5root.build
Executable file
22
scripts/Compiler/H5root.build
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $(dirname $0)/../lib/libem.bash
|
||||
|
||||
function em.pre_configure() {
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
function em.configure() {
|
||||
"${MODULE_SRCDIR}"/configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--enable-h5hut \
|
||||
--enable-hdf5 \
|
||||
--enable-root \
|
||||
--with-pic
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}" 'hdf5_serial' 'root'
|
||||
em.set_build_dependencies 'autoconf' 'automake' 'libtool' "${COMPILER}" 'hdf5_serial' 'H5hut_serial' 'root'
|
||||
em.make_all
|
||||
|
||||
49
scripts/Compiler/OpenBLAS.build
Executable file
49
scripts/Compiler/OpenBLAS.build
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
|
||||
SHELL = /bin/sh
|
||||
PLAT =
|
||||
DRVOPTS = \$(OPTS)
|
||||
LOADER = \$(FORTRAN) -pthread
|
||||
ARCHFLAGS= -ru
|
||||
EOF
|
||||
cat <<EOF > "${MODULE_SRCDIR}/Makefile.rule"
|
||||
VERSION = 0.2.9
|
||||
TARGET = CORE2
|
||||
CC = gcc
|
||||
BINARY=64
|
||||
USE_THREAD = 0
|
||||
USE_OPENMP = 0
|
||||
NO_SHARED = 1
|
||||
NO_WARMUP = 1
|
||||
NO_AFFINITY = 1
|
||||
FCOMMON_OPT = -frecursive
|
||||
COMMON_PROF = -pg
|
||||
EOF
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
make
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
make PREFIX="${PREFIX}" install
|
||||
# We have to build shared libs and remove them here.
|
||||
# Building with NOSHARED gives an error during install -
|
||||
# due to a bug in the Makefile(s).
|
||||
rm -f "${PREFIX}/lib/"*.so
|
||||
rm -f "${PREFIX}/lib/"*.dylib
|
||||
#( cd "${PREFIX}/lib"; ln -fs
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.set_docfiles 'LICENSE' 'README.md'
|
||||
em.set_supported_compilers 'gcc'
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
49
scripts/Compiler/OpenBLAS_OMP.build
Executable file
49
scripts/Compiler/OpenBLAS_OMP.build
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
cat <<EOF > "${MODULE_SRCDIR}/make.inc"
|
||||
SHELL = /bin/sh
|
||||
PLAT =
|
||||
DRVOPTS = \$(OPTS)
|
||||
LOADER = \$(FORTRAN) -pthread
|
||||
ARCHFLAGS= -ru
|
||||
EOF
|
||||
cat <<EOF > "${MODULE_SRCDIR}/Makefile.rule"
|
||||
VERSION = 0.2.9
|
||||
TARGET = CORE2
|
||||
CC = gcc
|
||||
BINARY=64
|
||||
USE_THREAD = 1
|
||||
USE_OPENMP = 1
|
||||
NO_SHARED = 1
|
||||
NO_WARMUP = 1
|
||||
NO_AFFINITY = 1
|
||||
FCOMMON_OPT = -frecursive
|
||||
COMMON_PROF = -pg
|
||||
EOF
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
make
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
make PREFIX="${PREFIX}" install
|
||||
# We have to build shared libs and remove them here.
|
||||
# Building with NOSHARED gives an error during install -
|
||||
# due to a bug in the Makefile(s).
|
||||
rm -f "${PREFIX}/lib/"*.so
|
||||
rm -f "${PREFIX}/lib/"*.dylib
|
||||
#( cd "${PREFIX}/lib"; ln -fs
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}"
|
||||
em.set_docfiles 'LICENSE' 'README.md'
|
||||
em.set_supported_compilers 'gcc'
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
48
scripts/Compiler/SuperLU.build
Executable file
48
scripts/Compiler/SuperLU.build
Executable file
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.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
|
||||
}
|
||||
|
||||
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 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}"
|
||||
em.set_build_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
em.set_docfiles 'README'
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
44
scripts/Compiler/UMFPACK.build
Executable file
44
scripts/Compiler/UMFPACK.build
Executable file
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
cat <<EOF > "${MODULE_SRCDIR}/SuiteSparse_config/SuiteSparse_config.mk"
|
||||
CF = \$(CFLAGS) \$(CPPFLAGS) \$(TARGET_ARCH) -O3 -fexceptions -fPIC -DNTIMER
|
||||
RANLIB = ranlib
|
||||
ARCHIVE = \$(AR) \$(ARFLAGS)
|
||||
CP = cp -f
|
||||
MV = mv -f
|
||||
F77 = gfortran
|
||||
F77FLAGS = \$(FFLAGS) -O
|
||||
F77LIB =
|
||||
LIB = -lm
|
||||
INSTALL_LIB = \${PREFIX}/lib
|
||||
INSTALL_INCLUDE = \${PREFIX}/include
|
||||
BLAS = -lopenblas -lgfortran
|
||||
XERBLA =
|
||||
GPU_BLAS_PATH =
|
||||
GPU_CONFIG =
|
||||
UMFPACK_CONFIG = -DNCHOLMOD
|
||||
CHOLMOD_CONFIG = \$(GPU_CONFIG)
|
||||
SPQR_CONFIG =
|
||||
TBB =
|
||||
EOF
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${MODULE_SRCDIR}/UMFPACK"
|
||||
make TARGET=CORE2 BINARY=64 USE_THREAD=0 NO_SHARED=1
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
install -d "${PREFIX}/include"
|
||||
install -d "${PREFIX}/lib"
|
||||
make PREFIX="${PREFIX}" install
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
em.set_build_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
em.make_all
|
||||
#em.cleanup_src
|
||||
Reference in New Issue
Block a user