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
6c46a5d6
Commit
6c46a5d6
authored
9 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Plain Diff
Merge pull request #807 from gartung/fftw-openmp
FFTW: openmp needs to be an option for clang build
parents
2a38ec4c
67d64b80
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/fftw/package.py
+10
-3
10 additions, 3 deletions
var/spack/repos/builtin/packages/fftw/package.py
with
10 additions
and
3 deletions
var/spack/repos/builtin/packages/fftw/package.py
+
10
−
3
View file @
6c46a5d6
...
...
@@ -42,7 +42,7 @@ class Fftw(Package):
variant
(
'
float
'
,
default
=
True
,
description
=
'
Produces a single precision version of the library
'
)
variant
(
'
long_double
'
,
default
=
True
,
description
=
'
Produces a long double precision version of the library
'
)
variant
(
'
quad
'
,
default
=
False
,
description
=
'
Produces a quad precision version of the library (works only with GCC and libquadmath)
'
)
variant
(
'
openmp
'
,
default
=
False
,
description
=
"
Enable OpenMP support.
"
)
variant
(
'
mpi
'
,
default
=
False
,
description
=
'
Activate MPI support
'
)
depends_on
(
'
mpi
'
,
when
=
'
+mpi
'
)
...
...
@@ -52,8 +52,15 @@ class Fftw(Package):
def
install
(
self
,
spec
,
prefix
):
options
=
[
'
--prefix=%s
'
%
prefix
,
'
--enable-shared
'
,
'
--enable-threads
'
,
'
--enable-openmp
'
]
'
--enable-threads
'
]
# Add support for OpenMP
if
'
+openmp
'
in
spec
:
# Note: Apple's Clang does not support OpenMP.
if
spec
.
satisfies
(
'
%clang
'
):
ver
=
str
(
self
.
compiler
.
version
)
if
ver
.
endswith
(
'
-apple
'
):
raise
InstallError
(
"
Apple
'
s clang does not support OpenMP
"
)
options
.
append
(
'
--enable-openmp
'
)
if
not
self
.
compiler
.
f77
or
not
self
.
compiler
.
fc
:
options
.
append
(
"
--disable-fortran
"
)
if
'
+mpi
'
in
spec
:
...
...
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