Browse Source

correct bad thread timing storage size set which should have been 1 from the start and not 0

master
Constantin Fürst 11 months ago
parent
commit
34f7aca50a
  1. 4
      qdp_project/src/Benchmark.cpp

4
qdp_project/src/Benchmark.cpp

@ -179,7 +179,7 @@ void scan_b(size_t gid, size_t tid) {
const size_t end = start + split;
THREAD_TIMING_[SCANB_TIMING_INDEX][tid * gid].clear();
THREAD_TIMING_[SCANB_TIMING_INDEX][tid * gid].resize(0);
THREAD_TIMING_[SCANB_TIMING_INDEX][tid * gid].resize(1);
LAUNCH_.wait();
@ -203,7 +203,7 @@ void scan_b(size_t gid, size_t tid) {
void scan_a(size_t gid, size_t tid) {
THREAD_TIMING_[SCANA_TIMING_INDEX][tid * gid].clear();
THREAD_TIMING_[SCANA_TIMING_INDEX][tid * gid].resize(0);
THREAD_TIMING_[SCANA_TIMING_INDEX][tid * gid].resize(1);
LAUNCH_.wait();

Loading…
Cancel
Save