all buildblocks moved one level up
This commit is contained in:
47
Compiler/OpenBLAS_OMP/build
Executable file
47
Compiler/OpenBLAS_OMP/build
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
pbuild::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
|
||||
}
|
||||
|
||||
pbuild::build() {
|
||||
cd "${MODULE_SRCDIR}"
|
||||
make
|
||||
}
|
||||
|
||||
pbuild::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
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'Compiler'
|
||||
pbuild::set_runtime_dependencies "${COMPILER}"
|
||||
pbuild::set_build_dependencies "${COMPILER}"
|
||||
pbuild::set_docfiles 'LICENSE' 'README.md'
|
||||
pbuild::set_supported_compilers 'gcc'
|
||||
pbuild::make_all
|
||||
pbuild::cleanup_src
|
||||
30
Compiler/OpenBLAS_OMP/modulefile
Normal file
30
Compiler/OpenBLAS_OMP/modulefile
Normal file
@@ -0,0 +1,30 @@
|
||||
#%Module1.0
|
||||
|
||||
set whatis "optimized BLAS and LAPACK library compiled with OpenMP."
|
||||
set url "http://www.openblas.net/"
|
||||
set license "BSD"
|
||||
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
set help "
|
||||
The BLAS (Basic Linear Algebra Subprograms) are routines that provide
|
||||
standard building blocks for performing basic vector and matrix operations.
|
||||
The Level 1 BLAS perform scalar, vector and vector-vector operations, the
|
||||
Level 2 BLAS perform matrix-vector operations, and the Level 3 BLAS perform
|
||||
matrix-matrix operations. Because the BLAS are efficient, portable, and
|
||||
widely available, they are commonly used in the development of high quality
|
||||
linear algebra software, LAPACK for example.
|
||||
|
||||
LAPACK (Linear Algebra PACKage) is written in Fortran 90 and provides
|
||||
routines for solving systems of simultaneous linear equations, least-
|
||||
squares solutions of linear systems of equations, eigenvalue problems,
|
||||
and singular value problems. The associated matrix factorizations (LU,
|
||||
Cholesky, QR, SVD, Schur, generalized Schur) are also provided, as are
|
||||
related computations such as reordering of the Schur factorizations and
|
||||
estimating condition numbers. Dense and banded matrices are handled, but
|
||||
not general sparse matrices. In all areas, similar functionality is
|
||||
provided for real and complex matrices, in both single and double precision.
|
||||
"
|
||||
|
||||
source $env(PSI_LIBMODULES)
|
||||
|
||||
setenv OMP_NUM_THREADS 1
|
||||
setenv BLASLIB $PREFIX/libopenblas.a
|
||||
Reference in New Issue
Block a user