Skip to content

Commit

Permalink
Merge pull request #1254 from KrisThielemans/RemoveBackProjectorExtra…
Browse files Browse the repository at this point in the history
…Reduce

[OpenMP] remove a superfluous reduction of backprojected images
  • Loading branch information
KrisThielemans authored Sep 17, 2023
2 parents 9e40811 + 541d590 commit 0307f8d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/recon_buildblock/BackProjectorByBin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,6 @@ BackProjectorByBin::back_project(const ProjData& proj_data, int subset_num, int
back_project(viewgrams);
}
}
#ifdef STIR_OPENMP
// "reduce" data constructed by threads
{
for (int i=0; i<static_cast<int>(_local_output_image_sptrs.size()); ++i)
if(!is_null_ptr(_local_output_image_sptrs[i])) // only accumulate if a thread filled something in
(*_density_sptr) += *(_local_output_image_sptrs[i]);
}
#endif
}

void
Expand Down

0 comments on commit 0307f8d

Please sign in to comment.