Skip to content

Commit

Permalink
workaround for backwards compatibility for impl_track
Browse files Browse the repository at this point in the history
  • Loading branch information
nmm0 committed Oct 16, 2024
1 parent f84d93e commit f28775e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/Kokkos_View.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ class View : public Impl::BasicViewFromTraits<DataType, Properties...>::type {
if constexpr (traits::is_managed) {
return base_t::data_handle().tracker();
} else {
return {};
static const Kokkos::Impl::SharedAllocationTracker empty_tracker = {};
return empty_tracker;
}
}
//----------------------------------------
Expand Down

0 comments on commit f28775e

Please sign in to comment.