Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
buildblocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Pmodules
buildblocks
Commits
322b8e1d
Commit
322b8e1d
authored
Jul 25, 2014
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OpenBLAS: build scripts for module with/without OpenMP
parent
715ca70a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
2 deletions
+51
-2
scripts/OpenBLAS.build
scripts/OpenBLAS.build
+2
-2
scripts/OpenBLAS_OMP.build
scripts/OpenBLAS_OMP.build
+49
-0
No files found.
scripts/OpenBLAS.build
View file @
322b8e1d
...
...
@@ -15,8 +15,8 @@ VERSION = 0.2.9
TARGET = CORE2
CC = gcc
BINARY=64
USE_THREAD =
1
USE_OPENMP =
1
USE_THREAD =
0
USE_OPENMP =
0
NO_SHARED = 1
NO_WARMUP = 1
NO_AFFINITY = 1
...
...
scripts/OpenBLAS_OMP.build
0 → 100755
View file @
322b8e1d
#!/bin/bash
source
"
$(
dirname
$0
)
/../lib/libem.bash"
function
em.configure
()
{
cat
<<
EOF
> "
${
EM_SRCDIR
}
/make.inc"
SHELL = /bin/sh
PLAT =
DRVOPTS =
\$
(OPTS)
LOADER =
\$
(FORTRAN) -pthread
ARCHFLAGS= -ru
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
}
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment