There is a GPU bug in R2017a, which can be reproduced by the following simple code:
p=gpuArray(single(randn(1,4,10,2359296)));max(p,[],3);
it will cause the following error: Error using gpuArray/gather An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_ILLEGAL_ADDRESS
Any idea why?
Best Answer