gpuArray: CUDA ERROR ALREADY MAPPED
古いコメントを表示
I was trying to use gpuArray, for instance with the following Matlab provided example:
X = rand(10, 'single');
G = gpuArray(X);
classUnderlying(G) % Returns 'single'
G2 = G .* G; % Performed on GPU
whos G2 % Result on GPU
But Matlab gives this error message. I checked online, it means the resources already mapped, which does not tell me much. How should I fix this? Previously I had no problem using gpuArray on my matlab. Thank you!
Error using gpuArray
An unexpected error occurred during CUDA execution. The CUDA error was:
CUDA_ERROR_ALREADY_MAPPED
6 件のコメント
Walter Roberson
2014 年 2 月 1 日
Are you attempting to use gpuArray within parfor or spmd workers?
Did you try exiting MATLAB and restarting it?
Matt J
2014 年 2 月 1 日
Do you have multiple graphics cards installed?
Matt J
2014 年 2 月 1 日
Have you been using any non-MATLAB GPU applications?
Walter Roberson
2014 年 2 月 1 日
Or multiple MATLAB sessions each of which uses the GPU ?
Grace Gu
2014 年 2 月 3 日
Grace Gu
2014 年 2 月 4 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!