From 2393e456eea398bbccf54991050cb860523c99aa Mon Sep 17 00:00:00 2001 From: MatthewLieber <77356607+MatthewLieber@users.noreply.github.com> Date: Wed, 22 Mar 2023 14:49:12 -0400 Subject: Osu/mv2 hwloc2 (#36325) * Revert "Remove legacy yaml from buildcache fetch (#34347)" This reverts commit b58ec9e2b9bb969ba034b35ffe7412db6648e760. * Revert "Revert "Remove legacy yaml from buildcache fetch (#34347)"" This reverts commit f91ec2e8da57fdd0a70ce0071fb637736ce05b24. * add variant for hwloc v2 * running black --------- Co-authored-by: Matt Lieber --- var/spack/repos/builtin/packages/mvapich2/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/mvapich2/package.py b/var/spack/repos/builtin/packages/mvapich2/package.py index b4d17f0de0..d8f3fb1c59 100644 --- a/var/spack/repos/builtin/packages/mvapich2/package.py +++ b/var/spack/repos/builtin/packages/mvapich2/package.py @@ -108,6 +108,7 @@ class Mvapich2(AutotoolsPackage): "alloca", default=False, description="Use alloca to allocate temporary memory if available" ) + variant("hwlocv2", default=False, description="Builds mvapich2 with hwloc v2") variant( "file_systems", description="List of the ROMIO file systems to activate", @@ -430,6 +431,8 @@ class Mvapich2(AutotoolsPackage): else: args.append("--disable-cuda") + if "+hwlocv2" in self.spec: + args.append("--with-hwloc=v2") if "+regcache" in self.spec: args.append("--enable-registration-cache") else: -- cgit v1.2.3-60-g2f50