RAJA icon indicating copy to clipboard operation
RAJA copied to clipboard

Send '-allow-unsupported-compiler' to nvcc

Open chichunchen opened this issue 2 years ago • 2 comments

I'm trying to build RAJA with CUDA and Clang version >= 15 but I'm still getting the Clang version error after setting -DCMAKE_CUDA_FLAGS_RELEASE="-allow-unsupported-compiler". Is there any flag that I can use to send '-allow-unsupported-compiler' to nvcc?

chichunchen avatar Sep 14 '23 16:09 chichunchen

I normally use CMAKE_CXX_FLAGS to pass flags to the compiler even if they're language specific, which results in unknown flag warnings. That's probably not the best way of doing things. Does anyone else know a better way to do things @LLNL/blt?

MrBurmark avatar Sep 19 '23 15:09 MrBurmark

CMAKE_CUDA_FLAGS should get the flags there.

(BLT has a way to pass this, but it's ultimately CMAKE_CUDA_FLAGS at the end of the day. )

Could CMAKE_CUDA_FLAGS_RELEASE be to specific to be included?

make VERBOSE=1

Might help with the mystery.

cyrush avatar Sep 19 '23 18:09 cyrush