The following script was used to compare performance of GPU vs CPU:
dev = gpuDevice;
for i = 1:numel(Narr)
N = Narr(i);
fprintf('Size = %d, speedup = %f\n',N,cpuTime/gpuTime1)
Why do we need to use the 'wait' function when timing GPU performance while this was not the case in MATLAB 7.13 (R2011b) and prior releases?