Skip to content

Commit

Permalink
chore: remove uneeded CMAKE options
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-sivaraman committed Jan 24, 2024
1 parent af2485c commit 088049f
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/raja/model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ register_flag_optional(RAJA_BACK_END "Specify whether we target CPU/CUDA/HIP/SYC
register_flag_optional(MANAGED_ALLOC "Use UVM (cudaMallocManaged) instead of the device-only allocation (cudaMalloc)"
"OFF")

register_flag_optional(SYNC_ALL_KERNELS
"Fully synchronise all kernels after launch, this also enables synchronous error checking with line and file name"
"OFF")

macro(setup)
if (POLICY CMP0104)
cmake_policy(SET CMP0104 OLD)
Expand All @@ -28,6 +24,7 @@ macro(setup)
set_source_files_properties(${IMPL_SOURCES} PROPERTIES LANGUAGE CUDA)
register_definitions(RAJA_TARGET_GPU)
elseif (${RAJA_BACK_END} STREQUAL "HIP")
# Set CMAKE_CXX_COMPILER to hipcc
find_package(hip REQUIRED)
register_definitions(RAJA_TARGET_GPU)
elseif (${RAJA_BACK_END} STREQUAL "SYCL")
Expand All @@ -38,11 +35,6 @@ macro(setup)
endif ()

if (MANAGED_ALLOC)
register_definitions(CLOVER_MANAGED_ALLOC)
register_definitions(BUDE_MANAGED_ALLOC)
endif ()

if (SYNC_ALL_KERNELS)
register_definitions(CLOVER_SYNC_ALL_KERNELS)
endif ()

endmacro()

0 comments on commit 088049f

Please sign in to comment.