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
f2e66730
Unverified
Commit
f2e66730
authored
4 years ago
by
Amjad Kotobi
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
openmpi: added lustre variant to openmpi (#17478)
parent
0ebdfb3c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
var/spack/repos/builtin/packages/lustre/package.py
+30
-0
30 additions, 0 deletions
var/spack/repos/builtin/packages/lustre/package.py
var/spack/repos/builtin/packages/openmpi/package.py
+9
-1
9 additions, 1 deletion
var/spack/repos/builtin/packages/openmpi/package.py
with
39 additions
and
1 deletion
var/spack/repos/builtin/packages/lustre/package.py
0 → 100644
+
30
−
0
View file @
f2e66730
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from
spack
import
*
class
Lustre
(
Package
):
"""
Lustre is a type of parallel distributed file system,
generally used for large-scale cluster computing.
"""
homepage
=
'
http://lustre.org/
'
has_code
=
False
version
(
'
2.12
'
)
# Lustre is filesystem and needs to be installed on system.
# To have it as external package in SPACK, follow below:
# config file packages.yaml needs to be adjusted:
# lustre:
# version: [2.12]
# paths:
# lustre@2.12: /usr (Usual Lustre library path)
# buildable: False
def
install
(
self
,
spec
,
prefix
):
raise
InstallError
(
self
.
spec
.
format
(
'
{name} is not installable, you need to specify
'
'
it as an external package in packages.yaml
'
))
This diff is collapsed.
Click to expand it.
var/spack/repos/builtin/packages/openmpi/package.py
+
9
−
1
View file @
f2e66730
...
...
@@ -221,6 +221,8 @@ class Openmpi(AutotoolsPackage):
variant
(
'
gpfs
'
,
default
=
True
,
description
=
'
Enable GPFS support (if present)
'
)
variant
(
'
singularity
'
,
default
=
False
,
description
=
"
Build support for the Singularity container
"
)
variant
(
'
lustre
'
,
default
=
False
,
description
=
"
Lustre filesystem library support
"
)
# Adding support to build a debug version of OpenMPI that activates
# Memchecker, as described here:
#
...
...
@@ -269,6 +271,7 @@ class Openmpi(AutotoolsPackage):
depends_on
(
'
valgrind~mpi
'
,
when
=
'
+memchecker
'
)
# Singularity release 3 works better
depends_on
(
'
singularity@3.0.0:
'
,
when
=
'
+singularity
'
)
depends_on
(
'
lustre
'
,
when
=
'
+lustre
'
)
depends_on
(
'
opa-psm2
'
,
when
=
'
fabrics=psm2
'
)
depends_on
(
'
rdma-core
'
,
when
=
'
fabrics=verbs
'
)
...
...
@@ -536,8 +539,13 @@ def configure_args(self):
# Singularity container support
if
spec
.
satisfies
(
'
+singularity @:4.9
'
):
singularity_opt
=
'
--with-singularity={0}
'
.
format
(
spec
[
'
singularity
'
].
prefix
)
singularity_opt
=
'
--with-singularity={0}
'
.
format
(
spec
[
'
singularity
'
].
prefix
)
config_args
.
append
(
singularity_opt
)
# Lustre filesystem support
if
spec
.
satisfies
(
'
+lustre
'
):
lustre_opt
=
'
--with-lustre={0}
'
.
format
(
spec
[
'
lustre
'
].
prefix
)
config_args
.
append
(
lustre_opt
)
# Hwloc support
if
spec
.
satisfies
(
'
@1.5.2:
'
):
config_args
.
append
(
'
--with-hwloc={0}
'
.
format
(
spec
[
'
hwloc
'
].
prefix
))
...
...
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