Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: setting ENABLE_CLANG_CUDA and BLT_CXX_STD=c++17 causes error #657

Open
johnbowen42 opened this issue Sep 27, 2023 · 0 comments
Open
Assignees
Labels
clang Related to the Clang compiler cuda Issues related to CUDA

Comments

@johnbowen42
Copy link
Contributor

Whenever a project sets ENABLE_CLANG_CUDA=On and BLT_CXX_STD=c++17, CMake errors out inside BLTSetupCUDA.cmake, because

CMake Error at blt_test/blt/cmake/thirdparty/BLTSetupCUDA.cmake:72 (message):
CMake's CUDA_STANDARD does not support C++17.`

This is caused by the variable CMAKE_CUDA_COMPILE_FEATURES not being set when clang cuda is being used. Proejcts should be able to use clang to compile cuda with C++17, if their clang cuda compiler supports this standard.

@johnbowen42 johnbowen42 self-assigned this Sep 27, 2023
@johnbowen42 johnbowen42 added cuda Issues related to CUDA clang Related to the Clang compiler labels Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Related to the Clang compiler cuda Issues related to CUDA
Projects
None yet
Development

No branches or pull requests

1 participant