Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
ccccd7b6
Commit
ccccd7b6
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #806 from davydden/openblas_openmp_clang
openblas: do not use OpenMP with Clang
parents
f21fcb3b
72b91758
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/openblas/package.py
+10
-4
10 additions, 4 deletions
var/spack/repos/builtin/packages/openblas/package.py
with
10 additions
and
4 deletions
var/spack/repos/builtin/packages/openblas/package.py
+
10
−
4
View file @
ccccd7b6
...
...
@@ -8,13 +8,14 @@ class Openblas(Package):
homepage
=
"
http://www.openblas.net
"
url
=
"
http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz
"
version
(
'
0.2.18
'
,
'
805e7f660877d588ea7e3792cda2ee65
'
)
version
(
'
0.2.17
'
,
'
664a12807f2a2a7cda4781e3ab2ae0e1
'
)
version
(
'
0.2.16
'
,
'
fef46ab92463bdbb1479dcec594ef6dc
'
)
version
(
'
0.2.15
'
,
'
b1190f3d3471685f17cfd1ec1d252ac9
'
)
variant
(
'
shared
'
,
default
=
True
,
description
=
"
Build shared libraries as well as static libs.
"
)
variant
(
'
openmp
'
,
default
=
Tru
e
,
description
=
"
Enable OpenMP support.
"
)
variant
(
'
fpic
'
,
default
=
True
,
description
=
"
Build position independent code
"
)
variant
(
'
shared
'
,
default
=
True
,
description
=
"
Build shared libraries as well as static libs.
"
)
variant
(
'
openmp
'
,
default
=
Fals
e
,
description
=
"
Enable OpenMP support.
"
)
variant
(
'
fpic
'
,
default
=
True
,
description
=
"
Build position independent code
"
)
# virtual dependency
provides
(
'
blas
'
)
...
...
@@ -45,8 +46,13 @@ def install(self, spec, prefix):
make_defs
+=
[
'
BUILD_LAPACK_DEPRECATED=1
'
]
# Add support for OpenMP
# Note: Make sure your compiler supports OpenMP
if
'
+openmp
'
in
spec
:
# Note: Apple's most recent Clang 7.3.0 still does not support OpenMP.
# What is worse, Openblas (as of 0.2.18) hardcoded that OpenMP cannot
# be used with any (!) compiler named clang, bummer.
if
spec
.
satisfies
(
'
%clang
'
):
raise
InstallError
(
'
OpenBLAS does not support OpenMP with clang!
'
)
make_defs
+=
[
'
USE_OPENMP=1
'
]
make_args
=
make_defs
+
make_targets
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment