Skip to content

Commit

Permalink
Merge pull request #208 from vlkale/efficientUnorderedMap
Browse files Browse the repository at this point in the history
kp_sampler_skip.cpp: erase for efficiency of unordered map
  • Loading branch information
crtrott authored Oct 5, 2023
2 parents 1542afe + d1b89e2 commit c3e85a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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 Expand Up @@ -244,6 +246,7 @@ void kokkosp_end_parallel_reduce(const uint64_t kID) {
(unsigned long long)(kID));
}
(*endScanCallee)(retrievedNestedkID);
infokIDSample.erase(kID);
}
}
}
Expand Down

0 comments on commit c3e85a6

Please sign in to comment.