Skip to content

Commit

Permalink
make it possible to build the CUDA kernels with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jan 29, 2024
1 parent 9f940a3 commit 6ceb529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,7 @@ def get_nvcc_args():
#GCC 6 uses C++11 by default:
else:
nvcc_cmd.append("-std=c++11")
if gcc_version>=(12, 0):
if gcc_version>=(12, 0) or CC_is_clang():
nvcc_cmd.append("--allow-unsupported-compiler")
if nvcc_version>=(11, 5):
nvcc_cmd += ["-arch=all",
Expand Down

0 comments on commit 6ceb529

Please sign in to comment.