libcxi: disable ze, cuda, rocm autodetection (#49736)
Only enable these if explicitly requested.
This commit is contained in:
parent
df9cac172e
commit
bd39598e61
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user