Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel committed Nov 20, 2024
1 parent 1feefa5 commit 4fd0cd0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if(AMR_WIND_ENABLE_SYCL AND AMR_WIND_ENABLE_OPENMP)
if((AMR_WIND_ENABLE_SYCL OR AMR_WIND_ENABLE_ROCM OR AMR_WIND_ENABLE_CUDA) AND AMR_WIND_ENABLE_OPENMP)
message(FATAL_ERROR "Using OpenMP with a GPU backend is unsupported.")
endif()

if(AMR_WIND_ENABLE_CUDA)
if(AMR_WIND_ENABLE_OPENMP)
message(FATAL_ERROR "Using OpenMP with a GPU backend is unsupported.")
endif()
enable_language(CUDA)
if(CMAKE_CUDA_COMPILER_VERSION VERSION_LESS "10.0")
message(FATAL_ERROR "Your nvcc version is ${CMAKE_CUDA_COMPILER_VERSION} which is unsupported."
Expand All @@ -70,9 +67,6 @@ if(AMR_WIND_ENABLE_CUDA)
endif()

if(AMR_WIND_ENABLE_ROCM)
if(AMR_WIND_ENABLE_OPENMP)
message(FATAL_ERROR "Using OpenMP with a GPU backend is unsupported.")
endif()
find_package(HIP REQUIRED)
if(NOT DEFINED AMD_ARCH)
# Set default AMD architectures (based on Frontier)
Expand Down

0 comments on commit 4fd0cd0

Please sign in to comment.