Infinite loop in KernelGridder.cu
When testing the WSclean with IDG on GPU, we found at the 215th line in KernelGridder.cu, if the BATCH_SIZE < current_nr_channels, current_nr_timesteps will be 0. Therefore, the for loop will result in an infinite loop. We currently added an if statement to avoid the endless loop; please see the 217th line in the attached image.
We have no idea what caused the script to get stuck in the infinite loop and if the debug at the 217th line will affect the final result.
Edited by Dan Hu