mvapich2: add hwloc_graphics variant (#38028)

Co-authored-by: Matthew Lieber <lieber.31@osu.edu>
This commit is contained in:
MatthewLieber 2023-06-12 11:25:10 -04:00 committed by GitHub
parent eee696f320
commit 8db5fecdf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,7 @@ class Mvapich2(AutotoolsPackage):
)
variant("hwlocv2", default=False, description="Builds mvapich2 with hwloc v2")
variant("hwloc_graphics", default=False, description="Enables hwloc graphics")
variant(
"file_systems",
description="List of the ROMIO file systems to activate",
@ -431,7 +432,10 @@ def configure_args(self):
args.extend(["--enable-cuda", "--with-cuda={0}".format(spec["cuda"].prefix)])
else:
args.append("--disable-cuda")
if "~hwloc_graphics" in self.spec:
args.append("--disable-opencl")
args.append("--disable-gl")
args.append("--disable-nvml")
if "+hwlocv2" in self.spec:
args.append("--with-hwloc=v2")
if "+regcache" in self.spec: