Skip to content

Commit

Permalink
SYCL: Force inlining of Kokkos::printf (kokkos#6650)
Browse files Browse the repository at this point in the history
* SYCL: Force inlining of Kokkos::printf

* Always force inline Kokkos::printf
  • Loading branch information
masterleinad committed Dec 20, 2023
1 parent 2092c01 commit 52e44d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Kokkos_Printf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Kokkos {
// backends. The GPU backends always return 1 and NVHPC only compiles if we
// don't ask for the return value.
template <typename... Args>
KOKKOS_FUNCTION void printf(const char* format, Args... args) {
KOKKOS_FORCEINLINE_FUNCTION void printf(const char* format, Args... args) {
#ifdef KOKKOS_ENABLE_SYCL
// Some compilers warn if "args" is empty and format is not a string literal
if constexpr (sizeof...(Args) == 0)
Expand Down

0 comments on commit 52e44d6

Please sign in to comment.