Skip to content

Commit 0307f8d

Browse files
Merge pull request #1254 from KrisThielemans/RemoveBackProjectorExtraReduce
[OpenMP] remove a superfluous reduction of backprojected images
2 parents 9e40811 + 541d590 commit 0307f8d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/recon_buildblock/BackProjectorByBin.cxx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,6 @@ BackProjectorByBin::back_project(const ProjData& proj_data, int subset_num, int
221221
back_project(viewgrams);
222222
}
223223
}
224-
#ifdef STIR_OPENMP
225-
// "reduce" data constructed by threads
226-
{
227-
for (int i=0; i<static_cast<int>(_local_output_image_sptrs.size()); ++i)
228-
if(!is_null_ptr(_local_output_image_sptrs[i])) // only accumulate if a thread filled something in
229-
(*_density_sptr) += *(_local_output_image_sptrs[i]);
230-
}
231-
#endif
232224
}
233225

234226
void

0 commit comments

Comments
 (0)