The command gpuDevice(1) takes quite a few minutes to initialize, as opposed to the few seconds that it is supposed to take when used with GTX 1080 or TITAN X (Pascal).
For example,
tic;a=gpuDevice(1);toc;tic;b=gpuDevice(1);toc;
Output:
Elapsed time is 202.824174 seconds.
Elapsed time is 202.291023 seconds.
How can we improve this ?
Best Answer