yaksa: Allow unsupported host compiler with CUDA (#40298)
Fixes #40272.
This commit is contained in:
parent
284eaf1afe
commit
d297098504
1 changed files with 2 additions and 0 deletions
|
@ -47,6 +47,8 @@ def configure_args(self):
|
|||
cuda_archs = spec.variants["cuda_arch"].value
|
||||
if "none" not in cuda_archs:
|
||||
config_args.append("--with-cuda-sm={0}".format(",".join(cuda_archs)))
|
||||
if "^cuda+allow-unsupported-compilers" in self.spec:
|
||||
config_args.append("NVCC_FLAGS=-allow-unsupported-compiler")
|
||||
|
||||
if "+rocm" in spec:
|
||||
config_args.append("--with-hip={0}".format(spec["hip"].prefix))
|
||||
|
|
Loading…
Reference in a new issue