ComputationalRadiationPhysics / jungfrau-photoncounter

Conversion of Jungfrau pixel detector data to photon count rate
GNU General Public License v3.0
2 stars 2 forks source link

Unnecessary copies when using a single device #70

Open j-stephan opened 3 years ago

j-stephan commented 3 years ago

This has occured to me when trying out the cluster_parallization branch with alpaka's SYCL backend. SYCL complains that alpakaCopy() tries to copy overlapping memory regions. In this case, the src and dst pointers are identical, causing the program to crash with the mentioned error.

This error occurs at multiple locations in the Dispenser code and can be solved by guarding these copies with if(dev->id != previousDev).