Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(consistency with Kokkos): after Kokkos PR 7394 #279

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading