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
8170bcfc
Commit
8170bcfc
authored
8 years ago
by
Todd Gamblin
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1574 from ARCCA/plumed-push
Update plumed package to include optional modules
parents
22d27869
07e0da24
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/plumed/package.py
+43
-5
43 additions, 5 deletions
var/spack/repos/builtin/packages/plumed/package.py
with
43 additions
and
5 deletions
var/spack/repos/builtin/packages/plumed/package.py
+
43
−
5
View file @
8170bcfc
...
...
@@ -45,10 +45,20 @@ class Plumed(Package):
version
(
'
2.2.3
'
,
'
a6e3863e40aac07eb8cf739cbd14ecf8
'
)
# Variants. PLUMED by default builds a number of optional modules.
# The ones listed here are not built by default for various reasons,
# such as stability, lack of testing, or lack of demand.
variant
(
'
crystallization
'
,
default
=
False
,
description
=
'
Build support for optional crystallization module.
'
)
variant
(
'
imd
'
,
default
=
False
,
description
=
'
Build support for optional imd module.
'
)
variant
(
'
manyrestraints
'
,
default
=
False
,
description
=
'
Build support for optional manyrestraints module.
'
)
variant
(
'
shared
'
,
default
=
True
,
description
=
'
Builds shared libraries
'
)
variant
(
'
mpi
'
,
default
=
True
,
description
=
'
Activates MPI support
'
)
variant
(
'
gsl
'
,
default
=
True
,
description
=
'
Activates GSL support
'
)
# Dependencies. LAPACK and BLAS are recommended but not essential.
depends_on
(
'
zlib
'
)
depends_on
(
'
blas
'
)
depends_on
(
'
lapack
'
)
...
...
@@ -96,17 +106,45 @@ def install(self, spec, prefix):
# with MPI you should use:
#
# > ./configure CXX="$MPICXX"
configure_opts
=
[
'
CXX={0}
'
.
format
(
spec
[
'
mpi
'
].
mpicxx
)
]
if
'
+mpi
'
in
self
.
spec
else
[]
configure_opts
=
[
'
--prefix=
'
+
prefix
]
# If using MPI then ensure the correct compiler wrapper is used.
if
'
+mpi
'
in
spec
:
configure_opts
.
extend
([
'
--enable-mpi
'
,
'
CXX={0}
'
.
format
(
spec
[
'
mpi
'
].
mpicxx
)
])
# If the MPI dependency is provided by the intel-mpi package then
# the following additional argument is required to allow it to
# build.
if
spec
.
satisfies
(
'
^intel-mpi
'
):
configure_opts
.
extend
([
'
STATIC_LIBS=-mt_mpi
'
])
# Additional arguments
configure_opts
.
extend
([
'
--prefix={0}
'
.
format
(
prefix
),
'
--enable-shared={0}
'
.
format
(
'
yes
'
if
'
+shared
'
in
spec
else
'
no
'
),
'
--enable-mpi={0}
'
.
format
(
'
yes
'
if
'
+mpi
'
in
spec
else
'
no
'
),
'
--enable-gsl={0}
'
.
format
(
'
yes
'
if
'
+gsl
'
in
spec
else
'
no
'
)
])
# Construct list of optional modules
module_opts
=
[]
module_opts
.
extend
([
'
+crystallization
'
if
(
'
+crystallization
'
in
spec
)
else
'
-crystallization
'
,
'
+imd
'
if
'
+imd
'
in
spec
else
'
-imd
'
,
'
+manyrestraints
'
if
(
'
+manyrestraints
'
in
spec
)
else
'
-manyrestraints
'
])
# If we have specified any optional modules then add the argument to
# enable or disable them.
if
module_opts
:
configure_opts
.
extend
([
'
--enable-modules={0}
'
.
format
(
""
.
join
(
module_opts
))])
configure
(
*
configure_opts
)
make
()
make
(
'
install
'
)
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