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
0451c8e5
Commit
0451c8e5
authored
8 years ago
by
Nicolas Richart
Browse files
Options
Downloads
Patches
Plain Diff
Addapting the mvapich2@2.1: configure options for slurm
parent
1eed2ee9
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/mvapich2/package.py
+18
-4
18 additions, 4 deletions
var/spack/repos/builtin/packages/mvapich2/package.py
with
18 additions
and
4 deletions
var/spack/repos/builtin/packages/mvapich2/package.py
+
18
−
4
View file @
0451c8e5
...
@@ -124,10 +124,19 @@ def set_process_manager(self, spec, configure_args):
...
@@ -124,10 +124,19 @@ def set_process_manager(self, spec, configure_args):
raise
RuntimeError
(
"
%s :
'
slurm
'
cannot be activated together with other process managers
"
%
self
.
name
)
raise
RuntimeError
(
"
%s :
'
slurm
'
cannot be activated together with other process managers
"
%
self
.
name
)
process_manager_options
=
[]
process_manager_options
=
[]
# See: http://slurm.schedmd.com/mpi_guide.html#mvapich2
if
self
.
enabled
(
Mvapich2
.
SLURM
)
in
spec
:
if
self
.
enabled
(
Mvapich2
.
SLURM
)
in
spec
:
process_manager_options
=
[
if
self
.
version
>
Version
(
'
2.0
'
):
"
--with-pm=slurm
"
process_manager_options
=
[
]
"
--with-pmi=pmi2
"
,
"
--with-pm=slurm
"
]
else
:
process_manager_options
=
[
"
--with-pmi=slurm
"
,
"
--with-pm=no
"
]
elif
has_slurm_incompatible_variants
:
elif
has_slurm_incompatible_variants
:
pms
=
[]
pms
=
[]
# The variant name is equal to the process manager name in the configuration options
# The variant name is equal to the process manager name in the configuration options
...
@@ -164,6 +173,11 @@ def set_network_type(self, spec, configure_args):
...
@@ -164,6 +173,11 @@ def set_network_type(self, spec, configure_args):
configure_args
.
extend
(
network_options
)
configure_args
.
extend
(
network_options
)
def
setup_environment
(
self
,
spack_env
,
run_env
):
if
self
.
enabled
(
Mvapich2
.
SLURM
)
in
self
.
spec
and
\
self
.
version
>
Version
(
'
2.0
'
):
run_env
.
set
(
'
SLURM_MPI_TYPE
'
,
'
pmi2
'
)
def
setup_dependent_environment
(
self
,
spack_env
,
run_env
,
extension_spec
):
def
setup_dependent_environment
(
self
,
spack_env
,
run_env
,
extension_spec
):
spack_env
.
set
(
'
MPICH_CC
'
,
spack_cc
)
spack_env
.
set
(
'
MPICH_CC
'
,
spack_cc
)
spack_env
.
set
(
'
MPICH_CXX
'
,
spack_cxx
)
spack_env
.
set
(
'
MPICH_CXX
'
,
spack_cxx
)
...
@@ -176,7 +190,7 @@ def setup_dependent_package(self, module, dep_spec):
...
@@ -176,7 +190,7 @@ def setup_dependent_package(self, module, dep_spec):
self
.
spec
.
mpicxx
=
join_path
(
self
.
prefix
.
bin
,
'
mpicxx
'
)
self
.
spec
.
mpicxx
=
join_path
(
self
.
prefix
.
bin
,
'
mpicxx
'
)
self
.
spec
.
mpifc
=
join_path
(
self
.
prefix
.
bin
,
'
mpif90
'
)
self
.
spec
.
mpifc
=
join_path
(
self
.
prefix
.
bin
,
'
mpif90
'
)
self
.
spec
.
mpif77
=
join_path
(
self
.
prefix
.
bin
,
'
mpif77
'
)
self
.
spec
.
mpif77
=
join_path
(
self
.
prefix
.
bin
,
'
mpif77
'
)
def
install
(
self
,
spec
,
prefix
):
def
install
(
self
,
spec
,
prefix
):
# we'll set different configure flags depending on our environment
# we'll set different configure flags depending on our environment
configure_args
=
[
configure_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