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
2a3fc6c4
Commit
2a3fc6c4
authored
8 years ago
by
Christoph Junghans
Committed by
Adam J. Stewart
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
charm: set sane default (#3865)
see
https://github.com/LLNL/spack/pull/3852#pullrequestreview-32996651
for details
parent
ce714b56
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/charm/package.py
+5
-33
5 additions, 33 deletions
var/spack/repos/builtin/packages/charm/package.py
with
5 additions
and
33 deletions
var/spack/repos/builtin/packages/charm/package.py
+
5
−
33
View file @
2a3fc6c4
...
...
@@ -53,16 +53,8 @@ class Charm(Package):
# Communication mechanisms (choose exactly one)
# TODO: Support Blue Gene/Q PAMI, Cray GNI, Cray shmem, CUDA
variant
(
"
mpi
"
,
default
=
True
,
description
=
"
Use MPI as communication mechanism
"
)
variant
(
"
multicore
"
,
default
=
False
,
description
=
"
Disable inter-node communication
"
)
variant
(
"
net
"
,
default
=
False
,
description
=
"
Use net communication mechanism
"
)
variant
(
"
netlrts
"
,
default
=
True
,
description
=
"
Use netlrts communication mechanism
"
)
variant
(
"
verbs
"
,
default
=
False
,
description
=
"
Use Infiniband as communication mechanism
"
)
variant
(
'
backend
'
,
default
=
'
mpi
'
,
description
=
(
'
Set the backend to use (mpi, multicore, net, netlrts, verbs)
'
))
# Other options
# Something is off with PAPI -- there are build errors. Maybe
...
...
@@ -73,37 +65,17 @@ class Charm(Package):
"
Enable SMP parallelism (does not work with +multicore)
"
))
variant
(
"
tcp
"
,
default
=
False
,
description
=
"
Use TCP as transport mechanism (requires +net)
"
)
variant
(
"
shared
"
,
default
=
Fals
e
,
description
=
"
Enable shared link support
"
)
variant
(
"
shared
"
,
default
=
Tru
e
,
description
=
"
Enable shared link support
"
)
# Note: We could add variants for AMPI, LIBS, bigemulator, msa, Tau
depends_on
(
"
mpi
"
,
when
=
"
+
mpi
"
)
depends_on
(
'
mpi
'
,
when
=
'
backend=
mpi
'
)
depends_on
(
"
papi
"
,
when
=
"
+papi
"
)
def
install
(
self
,
spec
,
prefix
):
target
=
"
charm++
"
# Note: Turn this into a multi-valued variant, once these
# exist in Spack
if
sum
([
"
+mpi
"
in
spec
,
"
+multicore
"
in
spec
,
"
+net
"
in
spec
,
"
+netlrts
"
in
spec
,
"
+verbs
"
in
spec
])
!=
1
:
raise
InstallError
(
"
Exactly one communication mechanism
"
"
(+mpi, +multicore, +net, +netlrts, or +verbs)
"
"
must be enabled
"
)
if
"
+mpi
"
in
spec
:
comm
=
"
mpi
"
if
"
+multicore
"
in
spec
:
comm
=
"
multicore
"
if
"
+net
"
in
spec
:
comm
=
"
net
"
if
"
+netlrts
"
in
spec
:
comm
=
"
netlrts
"
if
"
+verbs
"
in
spec
:
comm
=
"
verbs
"
comm
=
spec
.
variants
[
'
backend
'
].
value
plat
=
sys
.
platform
if
plat
.
startswith
(
"
linux
"
):
...
...
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