llnl / llnl/blt

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

Open
#657 0 comments 0 reactions 1 assignee View on GitHub

@johnbowen42 is already working on this.

Since Sep 27, 2023.

clang cuda
Dominant language
C++
Stars
296
Forks
66
Avg merge
1h 3m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.