Commit 6c14bf58 authored by gsell's avatar gsell

OpenBLAS: use openmp threads

parent 98dc1108
......@@ -9,13 +9,25 @@ PLAT =
DRVOPTS = \$(OPTS)
LOADER = \$(FORTRAN) -pthread
ARCHFLAGS= -ru
#RANLIB = ranlib
EOF
cat <<EOF > "${EM_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 "${EM_SRCDIR}"
make TARGET=CORE2 BINARY=64
make
}
function em.install() {
......@@ -24,14 +36,14 @@ function em.install() {
# Building with NOSHARED gives an error during install -
# due to a bug in the Makefile(s).
rm -f "${PREFIX}/lib/"*.so
}
function em.install_doc() {
:
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment