Skip to content

Commit

Permalink
Fixed alt multi-threaded throughput to use different events
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermeAlmeida1 committed Feb 6, 2023
1 parent dabb66f commit 330eef4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/run/common/throughput_mt_alt.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ int throughput_mt_alt(std::string_view description, int argc, char* argv[],
std::rand() % throughput_cfg.loaded_events;

// Launch the processing of the event.
arena.execute([&]() {
group.run([&]() {
arena.execute([&, event]() {
group.run([&, event]() {
rec_track_params.fetch_add(
algs.at(tbb::this_task_arena::current_thread_index())(
input[event].cells, input[event].modules)
Expand Down Expand Up @@ -177,8 +177,8 @@ int throughput_mt_alt(std::string_view description, int argc, char* argv[],
// std::endl;

// Launch the processing of the event.
arena.execute([&]() {
group.run([&]() {
arena.execute([&, event]() {
group.run([&, event]() {
rec_track_params.fetch_add(
algs.at(tbb::this_task_arena::current_thread_index())(
input[event].cells, input[event].modules)
Expand Down

0 comments on commit 330eef4

Please sign in to comment.