matlab-gpu

Calculation on GPU leads to driver error “stopped responding”

北城以北 提交于 2019-11-28 02:10:42
I have this little nonsense script here which I am executing in MATLAB R2013b: clear all; n = 2000; times = 50; i = 0; tCPU = tic; disp 'CPU::' A = rand(n, n); B = rand(n, n); disp '::Go' for i = 0:times CPU = A * B; end tCPU = toc(tCPU); tGPU = tic; disp 'GPU::' A = gpuArray(A); B = gpuArray(B); disp '::Go' for i = 0:times GPU = A * B ; end tGPU = toc(tGPU); fprintf('On CPU: %.2f sec\nOn GPU: %.2f sec\n', tCPU, tGPU); Unfortunately after execution I receive a message from Windows saying: " Display driver stopped working and has recovered. ". Which I assume means that Windows did not get

Calculation on GPU leads to driver error “stopped responding”

☆樱花仙子☆ 提交于 2019-11-27 04:51:50
问题 I have this little nonsense script here which I am executing in MATLAB R2013b: clear all; n = 2000; times = 50; i = 0; tCPU = tic; disp 'CPU::' A = rand(n, n); B = rand(n, n); disp '::Go' for i = 0:times CPU = A * B; end tCPU = toc(tCPU); tGPU = tic; disp 'GPU::' A = gpuArray(A); B = gpuArray(B); disp '::Go' for i = 0:times GPU = A * B ; end tGPU = toc(tGPU); fprintf('On CPU: %.2f sec\nOn GPU: %.2f sec\n', tCPU, tGPU); Unfortunately after execution I receive a message from Windows saying: "