diff --git a/src/global.cpp b/src/global.cpp index dd7cb573..1ed33ba1 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -66,6 +66,7 @@ int initialize() { void pushRegion(const std::string& kName) { Kokkos::Profiling::pushRegion(kName); if(prof.perfEnabled) { + Kokkos::fence(); prof.currentRegion = prof.currentRegion->GetChild(kName); prof.currentRegion->Start(); }