yaksa: Allow unsupported host compiler with CUDA (#40298)

Fixes #40272.
This commit is contained in:
Ken Raffenetti 2023-10-04 11:37:58 -05:00 committed by GitHub
parent 284eaf1afe
commit d297098504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,8 @@ def configure_args(self):
cuda_archs = spec.variants["cuda_arch"].value cuda_archs = spec.variants["cuda_arch"].value
if "none" not in cuda_archs: if "none" not in cuda_archs:
config_args.append("--with-cuda-sm={0}".format(",".join(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: if "+rocm" in spec:
config_args.append("--with-hip={0}".format(spec["hip"].prefix)) config_args.append("--with-hip={0}".format(spec["hip"].prefix))