Skip to content

Commit

Permalink
Update Kokkos_Profiling_Interface.hpp after kokkos pr 7394
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenarnst committed Oct 6, 2024
1 parent a9453b2 commit 0bbba87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions profiling/all/impl/Kokkos_Profiling_Interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ inline uint32_t device_id(ExecutionSpace const& space) noexcept {
<< num_instance_bits) +
space.impl_instance_id();
}

inline uint32_t int_for_synchronization_reason(
Kokkos::Tools::Experimental::SpecialSynchronizationCases reason) {
switch (reason) {
case GlobalDeviceSynchronization: return 0;
case DeepCopyResourceSynchronization: return 0x00ffffff;
}
return 0;
}
} // namespace Experimental
} // namespace Tools
} // end namespace Kokkos
Expand Down

0 comments on commit 0bbba87

Please sign in to comment.