row bug and memcpy
Build on RHEL8 / build (push) Failing after 1m20s
Build on RHEL9 / build (push) Failing after 1m24s
Run tests using data on local RHEL8 / build (push) Failing after 1m55s

This commit is contained in:
Erik Frojdh
2026-05-24 07:47:05 +02:00
parent 61b765c4b8
commit ee6b6dc990
3 changed files with 167 additions and 22 deletions
+7 -2
View File
@@ -31,7 +31,12 @@ class PixelHistogram {
const AxisType xmin_;
const AxisType xmax_;
std::vector<Hist> partial_hists_;
// Cumulative row offsets so that thread t owns rows
// [row_offsets_[t], row_offsets_[t + 1])
// Length is n_threads_ + 1; partition is balanced (the first
// rows_ % n_threads_ threads get one extra row each).
std::vector<int> row_offsets_;
// Thread pool members
std::vector<std::thread> workers_;
std::mutex work_mutex_;
@@ -41,7 +46,7 @@ class PixelHistogram {
std::atomic<int> completed_threads_;
std::atomic<bool> stop_workers_;
int work_generation_;
// Private worker thread method
void worker_loop(int thread_id);
int row_start(int thread_id) const;