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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
13f636ec
Commit
13f636ec
authored
Aug 19, 2016
by
Andrew Williams
Browse files
Options
Downloads
Patches
Plain Diff
Added required arguments to get plumed to build with intelmpi
parent
6641f424
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/plumed/package.py
+12
-7
12 additions, 7 deletions
var/spack/repos/builtin/packages/plumed/package.py
with
12 additions
and
7 deletions
var/spack/repos/builtin/packages/plumed/package.py
+
12
−
7
View file @
13f636ec
...
@@ -60,12 +60,14 @@ def install(self, spec, prefix):
...
@@ -60,12 +60,14 @@ def install(self, spec, prefix):
# Construct list of optional modules
# Construct list of optional modules
module_opts
=
[]
module_opts
=
[]
module_opts
.
extend
([
module_opts
.
extend
([
'
+crystallization
'
if
'
+crystallization
'
in
spec
else
'
-crystallization
'
,
'
+crystallization
'
if
(
'
+crystallization
'
in
spec
)
else
'
-crystallization
'
,
'
+imd
'
if
'
+imd
'
in
spec
else
'
-imd
'
,
'
+imd
'
if
'
+imd
'
in
spec
else
'
-imd
'
,
'
+manyrestraints
'
if
'
+manyrestraints
'
in
spec
else
'
-manyrestraints
'
'
+manyrestraints
'
if
(
'
+manyrestraints
'
in
spec
)
else
'
-manyrestraints
'
])
])
# If we have specified any optional modules then add the argument
r
o
# If we have specified any optional modules then add the argument
t
o
# enable or disable them.
# enable or disable them.
if
module_opts
:
if
module_opts
:
config_args
.
extend
([
"
--enable-modules=%s
"
%
""
.
join
(
module_opts
)])
config_args
.
extend
([
"
--enable-modules=%s
"
%
""
.
join
(
module_opts
)])
...
@@ -80,10 +82,13 @@ def install(self, spec, prefix):
...
@@ -80,10 +82,13 @@ def install(self, spec, prefix):
"
F77=%s
"
%
self
.
spec
[
'
mpi
'
].
mpif77
"
F77=%s
"
%
self
.
spec
[
'
mpi
'
].
mpif77
])
])
# Add remaining variant flags.
# If the MPI dependency is provided by the intelmpi package then
# config_args.extend([
# the following additional argument is required to allow it to
# "--enable-mpi" if '+mpi' in spec else "--disable-mpi"
# build.
# ])
if
spec
.
satisfies
(
'
^intelmpi
'
):
config_args
.
extend
([
"
STATIC_LIBS=-mt_mpi
"
])
# Configure
# Configure
configure
(
*
config_args
)
configure
(
*
config_args
)
...
...
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