File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ find_package(ortools REQUIRED)
1313find_package (LEMON NAMES LEMON lemon REQUIRED )
1414find_package (OpenMP REQUIRED )
1515
16+
1617message (STATUS "Found OR-Tools: ${ortools_DIR} (version: ${ortools_VERSION} )" )
1718
1819swig_lib (NAME gpl
@@ -112,10 +113,15 @@ if(ENABLE_GPU)
112113 # but the CXX flag is also harmless on the existing CPU TUs.
113114 target_compile_options (gpl_lib PRIVATE
114115 $<$<COMPILE_LANGUAGE :CXX >:-ffp -contract =off >
115- $<$<COMPILE_LANGUAGE :CUDA >:--fmad =false >
116+ $<$<COMPILE_LANGUAGE :CUDA >:--fmad =false -- extended - lambda >
116117 $<$<COMPILE_LANGUAGE :HIP >:-ffp -contract =off >
117118 )
118119 target_link_libraries (gpl_lib Kokkos::kokkos KokkosFFT::fft )
120+ if (Kokkos_ENABLE_OPENMP)
121+ target_compile_options (gpl_lib PRIVATE
122+ $<$<COMPILE_LANGUAGE :CUDA >:-fopenmp >
123+ )
124+ endif ()
119125 if (Kokkos_ENABLE_CUDA)
120126 # cuda runtime symbols are referenced from the CUDA TU; expose cudart
121127 # so that gpl_lib (and the openroad binary) link against libcudart.
You can’t perform that action at this time.
0 commit comments