% G = gpuArray(ones(100,'uint32'));
% D = gather(G);

A1 = rand(3000,3000);
A2 = rand(3000,3000,'single');
tic;
B1 = fft(A1);
time1 = toc

A2 = gpuArray(A2);
tic;
B2 = fft(A2);
time2 = toc

tic;
A4 = rand(3000,3000);
B4 = fft(A4);
time4 = toc

tic;
A5 = gpuArray.rand(3000,3000);
B5 = fft(A5);
B5 = gather(B5);
time5 = toc

speedUp = time4/time5;
disp(speedUp);