diff --git a/include/pando-lib-galois/loops/do_all.hpp b/include/pando-lib-galois/loops/do_all.hpp index 59781ffd..c0e30557 100644 --- a/include/pando-lib-galois/loops/do_all.hpp +++ b/include/pando-lib-galois/loops/do_all.hpp @@ -597,10 +597,18 @@ template pando::Status doAll(WaitGroup::HandleType wgh, State s, R range, const F& func) { return DoAll::doAll(wgh, s, range, func); } +template +pando::Status doAllExplicitPolicy(WaitGroup::HandleType wgh, State s, R range, const F& func) { + return DoAll::doAllExplicitPolicy(wgh, s, range, func); +} template pando::Status doAll(WaitGroup::HandleType wgh, R range, const F& func) { return DoAll::doAll(wgh, range, func); } +template +pando::Status doAllExplicitPolicy(WaitGroup::HandleType wgh, R range, const F& func) { + return DoAll::doAllExplicitPolicy(wgh, range, func); +} template pando::Status doAll(State s, R range, const F& func, const L& localityFunc) { return DoAll::doAll(s, range, func, localityFunc); diff --git a/microbench/bfs/include/pando-bfs-galois/sssp.hpp b/microbench/bfs/include/pando-bfs-galois/sssp.hpp index a3e8d54a..aa0c9474 100644 --- a/microbench/bfs/include/pando-bfs-galois/sssp.hpp +++ b/microbench/bfs/include/pando-bfs-galois/sssp.hpp @@ -134,7 +134,7 @@ pando::Status SSSP_DLCSR( state.dist = 0; #ifdef PANDO_STAT_TRACE_ENABLE - PANDO_CHECK(galois::doAll( + PANDO_CHECK(galois::doAllExplicitPolicy( wgh, phbfs, +[](pando::Vector) { PANDO_MEM_STAT_NEW_KERNEL("BFS Start"); })); @@ -168,7 +168,7 @@ pando::Status SSSP_DLCSR( } #ifdef PANDO_STAT_TRACE_ENABLE - PANDO_CHECK(galois::doAll( + PANDO_CHECK(galois::doAllExplicitPolicy( wgh, phbfs, +[](pando::Vector) { PANDO_MEM_STAT_NEW_KERNEL("BFS END"); })); @@ -311,7 +311,7 @@ pando::Status SSSPMDLCSR(G& graph, std::uint64_t src, HostLocalStorage( wgh, toRead, +[](MDWorkList) { PANDO_MEM_STAT_NEW_KERNEL("BFS Start"); })); @@ -360,7 +360,7 @@ pando::Status SSSPMDLCSR(G& graph, std::uint64_t src, HostLocalStorage( wgh, toRead, +[](MDWorkList) { PANDO_MEM_STAT_NEW_KERNEL("BFS END"); }));