Skip to content

Commit 0fdff5d

Browse files
committed
Prevent USE_CUDA and USE_MINI_HALOS build options being used together
1 parent 0afd593 commit 0fdff5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ option(GDB "Drop into GDB with mpi_debug_here() calls" OFF)
6363
option(ENABLE_PROFILING "Enable profiling of executable with gperftools." OFF)
6464
option(USE_CUDA "Build with CUDA support for reionization calculations" OFF)
6565

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

6771
# Build type
6872
set(default_build_type "RelWithDebInfo")

0 commit comments

Comments
 (0)