Skip to content

Commit

Permalink
Merge pull request #279 from uliegecsm/fix_after_kokkos_pr_7394
Browse files Browse the repository at this point in the history
fix(consistency with `Kokkos`): after `Kokkos` PR 7394
  • Loading branch information
dalg24 authored Dec 16, 2024
2 parents a9453b2 + 0bbba87 commit d8e17fd
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 d8e17fd

Please sign in to comment.