diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b3651a9..6cb8f48d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ mark_as_advanced(FORCE var Kokkos_ENABLE_CUDA_LAMBDA) mark_as_advanced(FORCE var BUILD_SHARED_LIBS) option(USE_STD_PARALLEL_ALG "Use TTB std parallel algorithms" ON) -option(pFlow_Build_Serial "Build phasicFlow and backends for serial execution" ON) +option(pFlow_Build_Serial "Build phasicFlow and backends for serial execution" OFF) option(pFlow_Build_OpenMP "Build phasicFlow and backends for OpenMP execution" OFF) option(pFlow_Build_Cuda "Build phasicFlow and backends for Cuda execution" OFF) @@ -33,6 +33,7 @@ elseif(pFlow_Build_OpenMP ) set(Kokkos_ENABLE_OPENMP ON CACHE BOOL "OpenMP execution" FORCE) set(Kokkos_ENABLE_CUDA OFF CACHE BOOL "Cuda execution" FORCE) set(Kokkos_ENABLE_CUDA_LAMBDA OFF CACHE BOOL "Cuda execution" FORCE) + set(Kokkos_DEFAULT_HOST_PARALLEL_EXECUTION_SPACE SERIAL CACHE STRING "" FORCE) elseif(pFlow_Build_Cuda) set(Kokkos_ENABLE_SERIAL ON CACHE BOOL "Serial execution" FORCE) set(Kokkos_ENABLE_OPENMP OFF CACHE BOOL "OpenMP execution" FORCE)