MATLAB: Easily Reproducible GPU Bug in R2017a

buggpur2017a

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

This does indeed appear to be a bug. Thanks for reporting this, I have passed this report on to the appropriate development team.