libcxi: disable ze, cuda, rocm autodetection (#49736)

Only enable these if explicitly requested.
This commit is contained in:
Richard Berger 2025-03-28 08:06:29 -06:00 committed by GitHub
parent df9cac172e
commit bd39598e61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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