Skip to content

Commit

Permalink
Merge pull request #484 from eagles-project/oscar/CUDA_HALF
Browse files Browse the repository at this point in the history
Fix compilation error with CUDA 12.
  • Loading branch information
odiazib authored Oct 1, 2024
2 parents e5dfce4 + 15f9e4f commit 928f142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ if (HAERO_ENABLE_GPU)
# the esa_on_defaulted_function_ignored supresses a warning about KOKKOS markups of defaulted constructors/destructors
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --expt-extended-lambda --expt-relaxed-constexpr -Xcudafe --diag_suppress=esa_on_defaulted_function_ignored")
# Avoid buggy experimental Kokkos CUDA stuff.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKOKKOS_CUDA_HALF_HPP_ -DKokkos_CXX_STANDARD=C++17")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DKokkos_CXX_STANDARD=C++17")
endif()

# Record the libraries we've gathered so far as the "base" libraries that
Expand Down

0 comments on commit 928f142

Please sign in to comment.