Fix RAJA CUDA build
RAJA looses the source directory, so need to remind it where the BabelStream source is to make sure it treats the source as CUDA NB: The RAJA CUDA build might be broken at this time. See https://github.com/LLNL/RAJA/issues/1296 Workaround below worked for us https://github.com/LLNL/RAJA/pull/1302
This commit is contained in:
parent
f7e912c3b9
commit
6945cbcec7
@ -84,8 +84,8 @@ macro(setup)
|
||||
if (ENABLE_CUDA)
|
||||
# RAJA needs the codebase to be compiled with nvcc, so we tell cmake to treat sources as *.cu
|
||||
enable_language(CUDA)
|
||||
set_source_files_properties(RAJAStream.cpp PROPERTIES LANGUAGE CUDA)
|
||||
set_source_files_properties(main.cpp PROPERTIES LANGUAGE CUDA)
|
||||
set_source_files_properties(src/raja/RAJAStream.cpp PROPERTIES LANGUAGE CUDA)
|
||||
set_source_files_properties(src/main.cpp PROPERTIES LANGUAGE CUDA)
|
||||
endif ()
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user