hwloc: fix build with +onepai-level-zero (#31622)

Flags to configure were erroneously managed to configure twice. 

Removed the one that was wrong so that a configure warning is no longer issued.
This commit is contained in:
Mark Abraham
2022-08-22 20:45:58 +02:00
committed by GitHub
parent fd80e34037
commit 70f0a725cc

View File

@@ -130,7 +130,7 @@ class Hwloc(AutotoolsPackage):
with when("+oneapi-level-zero"):
depends_on("oneapi-level-zero")
# oneapi-level-zero isn't available until version 2.5.0
# LevelZero support isn't available until hwloc version 2.5.0
conflicts("@:2.4.99", msg="hwloc supports Intel OneAPI Level Zero only since 2.5.0")
@classmethod
@@ -179,7 +179,6 @@ def configure_args(self):
args.extend(self.enable_or_disable("libudev"))
args.extend(self.enable_or_disable("pci"))
args.extend(self.enable_or_disable("shared"))
args.extend(self.enable_or_disable("oneapi-level-zero"))
if "+cuda" in self.spec:
args.append("--with-cuda={0}".format(self.spec["cuda"].prefix))