summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Di Pietrantonio <cristiandipietrantonio@gmail.com>2023-08-09 14:59:21 +0800
committerGitHub <noreply@github.com>2023-08-09 08:59:21 +0200
commitf42ef7aea7181627ce899e310228d65e362d6281 (patch)
treeefbbd176d984adb471ba98e925aa03c64f1dfd53
parent41793673d921b651b6db79584020f316a0eef072 (diff)
downloadspack-f42ef7aea7181627ce899e310228d65e362d6281.tar.gz
spack-f42ef7aea7181627ce899e310228d65e362d6281.tar.bz2
spack-f42ef7aea7181627ce899e310228d65e362d6281.tar.xz
spack-f42ef7aea7181627ce899e310228d65e362d6281.zip
ior: add lustre variant (#39320)
Co-authored-by: Cristian Di Pietrantonio <cdipietrantonio@pawsey.org.au>
-rw-r--r--var/spack/repos/builtin/packages/ior/package.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ior/package.py b/var/spack/repos/builtin/packages/ior/package.py
index 43238d3016..bad21c959c 100644
--- a/var/spack/repos/builtin/packages/ior/package.py
+++ b/var/spack/repos/builtin/packages/ior/package.py
@@ -26,6 +26,7 @@ class Ior(AutotoolsPackage):
variant("hdf5", default=False, description="support IO with HDF5 backend")
variant("ncmpi", default=False, description="support IO with NCMPI backend")
+ variant("lustre", default=False, description="support configurable Lustre striping values")
depends_on("autoconf", type="build")
depends_on("automake", type="build")
@@ -34,6 +35,7 @@ class Ior(AutotoolsPackage):
depends_on("mpi")
depends_on("hdf5+mpi", when="+hdf5")
depends_on("parallel-netcdf", when="+ncmpi")
+ depends_on("lustre", when="+lustre")
# The build for 3.2.0 fails if hdf5 is enabled
# See https://github.com/hpc/ior/pull/124
@@ -43,6 +45,14 @@ class Ior(AutotoolsPackage):
when="@3.2.0 +hdf5",
)
+ # Needs patch to make Lustre variant work
+ # See https://github.com/hpc/ior/issues/353
+ patch(
+ "https://github.com/glennklockwood/ior/commit/e49476be64d4100c2da662ea415f327348b3d11d.patch?full_index=1",
+ sha256="ee3527023ef70ea9aee2e6208f8be7126d5a48f26c587deed3d6238b4f848a06",
+ when="+lustre",
+ )
+
@run_before("autoreconf")
def bootstrap(self):
Executable("./bootstrap")()
@@ -64,4 +74,9 @@ class Ior(AutotoolsPackage):
else:
config_args.append("--without-ncmpi")
+ if "+lustre" in spec:
+ config_args.append("--with-lustre")
+ else:
+ config_args.append("--without-lustre")
+
return config_args