Skip to content

Commit

Permalink
Fix macro guards in test for NVC++ as the CUDA compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed May 10, 2023
1 parent 41d9d06 commit 531b01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unit_test/TestNumericTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct extrema {
DEFINE_EXTREMA(double, -DBL_MAX, DBL_MAX);

// FIXME_NVHPC: with 23.3 using long double in KOKKOS_FUNCTION is hard error
#if !defined(KOKKOS_ENABLE_CUDA) && !defined(KOKKOS_COMPILER_NVHPC)
#if !defined(KOKKOS_ENABLE_CUDA) || !defined(KOKKOS_COMPILER_NVHPC)
DEFINE_EXTREMA(long double, -LDBL_MAX, LDBL_MAX);
#else
static long double min(long double) { return -LDBL_MAX; }
Expand Down

0 comments on commit 531b01d

Please sign in to comment.