Skip to content

Commit

Permalink
fixing kp sampler to have erase when retrieving the sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed Sep 14, 2023
1 parent 0a8db28 commit d1b89e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/kokkos-sampler/kp_sampler_skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void kokkosp_end_parallel_for(const uint64_t kID) {
(unsigned long long)(kID));
}
(*endForCallee)(retrievedNestedkID);
infokIDSample.erase(kID);
}
}
}
Expand Down Expand Up @@ -212,6 +213,7 @@ void kokkosp_end_parallel_scan(const uint64_t kID) {
(unsigned long long)(kID));
}
(*endScanCallee)(retrievedNestedkID);
infokIDSample.erase(kID);
}
}
}
Expand Down

0 comments on commit d1b89e2

Please sign in to comment.