From dc3b11b0070b1ae0b3649d97a34d97b1aa880c3d Mon Sep 17 00:00:00 2001 From: nychiang Date: Fri, 2 Feb 2024 14:10:54 -0800 Subject: [PATCH] add a description --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94a3bf80..69aee10c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,8 +227,13 @@ if(HIOP_USE_GPU) set(HIOP_MAGMA_DIR CACHE PATH "Path to Magma directory") endif() - if(HIOP_USE_CUDA) + if(NOT HIOP_USE_RAJA) set(HIOP_USE_RAJA "ON") #CUDA/HIP requires using RAJA. + message(STATUS "Enable RAJA since HIOP_USE_GPU is ON. HiOp requires using RAJA with CUDA/HIP.") + endif(NOT HIOP_USE_RAJA) + + + if(HIOP_USE_CUDA) enable_language(CUDA) check_language(CUDA)