From bd39598e611f1309fd129e511816690e1698f376 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Fri, 28 Mar 2025 08:06:29 -0600 Subject: [PATCH] libcxi: disable ze, cuda, rocm autodetection (#49736) Only enable these if explicitly requested. --- var/spack/repos/builtin/packages/libcxi/package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/var/spack/repos/builtin/packages/libcxi/package.py b/var/spack/repos/builtin/packages/libcxi/package.py index e867fc80f4f..a663751c977 100644 --- a/var/spack/repos/builtin/packages/libcxi/package.py +++ b/var/spack/repos/builtin/packages/libcxi/package.py @@ -65,9 +65,15 @@ def configure_args(self): if self.spec.satisfies("+level_zero"): args.append(f"--with-ze={self.spec['oneapi-level-zero'].prefix}") + else: + args.append("--without-ze") if self.spec.satisfies("+cuda"): args.append(f"--with-cuda={self.spec['cuda'].prefix}") + else: + args.append("--without-cuda") if self.spec.satisfies("+rocm"): args.append(f"--with-rocm={self.spec['hip'].prefix}") + else: + args.append("--without-rocm") return args