Skip to content

Commit

Permalink
Update histogram_10_6th_safe_parallel_private.cpp
Browse files Browse the repository at this point in the history
fix by ref
  • Loading branch information
jamesreinders authored Dec 2, 2024
1 parent 800f77b commit fbdf277
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int main(int argc, char** argv) {
});
//Sequential reduction of the private histograms
vector_t hist_p(num_bins);
priv_h.combine_each([&](vector_t a)
priv_h.combine_each([&](vector_t& a)
{ // for each priv histogram a
std::transform(hist_p.begin(), // source 1 begin
hist_p.end(), // source 1 end
Expand Down

0 comments on commit fbdf277

Please sign in to comment.