Skip to content

Commit

Permalink
Prevent USE_CUDA and USE_MINI_HALOS build options being used together
Browse files Browse the repository at this point in the history
  • Loading branch information
smutch committed Feb 9, 2024
1 parent 0afd593 commit 0fdff5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ option(GDB "Drop into GDB with mpi_debug_here() calls" OFF)
option(ENABLE_PROFILING "Enable profiling of executable with gperftools." OFF)
option(USE_CUDA "Build with CUDA support for reionization calculations" OFF)

# Some build options clash with each other
if(USE_CUDA AND USE_MINI_HALOS)
message(FATAL_ERROR "The GPU reionization implementation does not currently support minihalos physics")
endif()

# Build type
set(default_build_type "RelWithDebInfo")
Expand Down

0 comments on commit 0fdff5d

Please sign in to comment.