summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorCyrus Harrison <cyrush@llnl.gov>2021-07-28 15:09:19 -0700
committerGitHub <noreply@github.com>2021-07-28 15:09:19 -0700
commitdb00cf24c011707afeb79c74f3c9e2076de78ed4 (patch)
tree06c1fd1b22fd9ee5079b9a331a114b380c27938e /var
parentc114cf019d0f8e2f74778ef22a9734b73cc0bf32 (diff)
downloadspack-db00cf24c011707afeb79c74f3c9e2076de78ed4.tar.gz
spack-db00cf24c011707afeb79c74f3c9e2076de78ed4.tar.bz2
spack-db00cf24c011707afeb79c74f3c9e2076de78ed4.tar.xz
spack-db00cf24c011707afeb79c74f3c9e2076de78ed4.zip
add parmetis variant to conduit (#25127)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/conduit/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py
index 2480841aba..4ff384b9ae 100644
--- a/var/spack/repos/builtin/packages/conduit/package.py
+++ b/var/spack/repos/builtin/packages/conduit/package.py
@@ -75,6 +75,7 @@ class Conduit(CMakePackage):
description="Build Conduit with HDF5 1.8.x (compatibility mode)")
variant("silo", default=False, description="Build Conduit Silo support")
variant("adios", default=False, description="Build Conduit ADIOS support")
+ variant("parmetis", default=False, description="Build Conduit Parmetis support")
# zfp compression
variant("zfp", default=False, description="Build Conduit ZFP support")
@@ -145,6 +146,12 @@ class Conduit(CMakePackage):
depends_on("h5z-zfp~fortran", when="+hdf5+zfp")
#######################
+ # Parmetis
+ #######################
+ depends_on("parmetis", when="+parmetis")
+ depends_on("metis", when="+parmetis")
+
+ #######################
# MPI
#######################
depends_on("mpi", when="+mpi")
@@ -543,6 +550,21 @@ class Conduit(CMakePackage):
else:
cfg.write("# adios not built by spack \n")
+ #######################
+ # Parmetis
+ #######################
+
+ cfg.write("# parmetis from spack \n")
+
+ if "+parmetis" in spec:
+ cfg.write(cmake_cache_entry("METIS_DIR", spec['metis'].prefix))
+ cfg.write(cmake_cache_entry("PARMETIS_DIR", spec['parmetis'].prefix))
+ else:
+ cfg.write("# parmetis not built by spack \n")
+
+ #######################
+ # Finish host-config
+ #######################
cfg.write("##################################\n")
cfg.write("# end spack generated host-config\n")
cfg.write("##################################\n")