Skip to content

Commit

Permalink
Introduce KOKKOS_IMPL_CONDITIONAL_EXPLICIT macro from kokkos#6830
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Apr 12, 2024
1 parent 923d48c commit ee42c6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/Kokkos_Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,12 @@ static constexpr bool kokkos_omp_on_host() { return false; }

#define KOKKOS_ATTRIBUTE_NODISCARD [[nodiscard]]

#ifdef KOKKOS_ENABLE_CXX20
#define KOKKOS_IMPL_CONDITIONAL_EXPLICIT(...) explicit(__VA_ARGS__)
#else
#define KOKKOS_IMPL_CONDITIONAL_EXPLICIT(...)
#endif

#if (defined(KOKKOS_COMPILER_GNU) || defined(KOKKOS_COMPILER_CLANG) || \
defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_INTEL_LLVM) || \
defined(KOKKOS_COMPILER_NVHPC)) && \
Expand Down

0 comments on commit ee42c6d

Please sign in to comment.