From 6945cbcec71be6ad09b2ea2a319169ab3dd99cf0 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Tue, 16 Aug 2022 15:43:22 +0000 Subject: [PATCH] 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 --- src/raja/model.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raja/model.cmake b/src/raja/model.cmake index 7e5f284..4da4af6 100644 --- a/src/raja/model.cmake +++ b/src/raja/model.cmake @@ -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 ()