GPU on Mac does not work.

32 次查看(过去 30 天)
B Janssen
B Janssen 2018-10-29
Hi, I am new to working with the GPU parallel computing capacity of Matlab, so I am a bit in uncharted waters here... I am trying to use the GPU capacity of my mac (MacBook Pro (17-inch, Mid 2009; OSX 10.11.6), which still came with a NVIDIA GeForce 9400M video card (!), for parallel computing. Installed recommended CUDA version (CUDA Driver Version: 7.5.27) and NVDIA driver (version; 346.03.15.f.16), and tried to use some Matlab examples to see if it would fire up:
if true
% A = gpuArray([1 0 1; -1 -2 0; 0 1 -1]);
end
It returned the following error message:
"There is a problem with the graphics driver or with this GPU device. Be sure that you have a supported GPU and that the latest driver is installed.
Error in parallel.internal.gpu.deviceCount Error in parallel.gpu.GPUDevice.count (line 26) c = parallel.internal.gpu.deviceCount;
Error in gpuDeviceCount (line 14) n = parallel.gpu.GPUDevice.count;
Caused by: The CUDA driver was found, but the function 'cuDriverGetVersion' returned an error. The error returned was: CUDA_ERROR_NOT_INITIALIZED"
So am I correct to understand that it looks as if the drivers are found but the GPU is not found? The GPU appears to be working fine, so what else?
Any ideas/suggestions for me how I should move on?
Thanks!
Barry
  2 个评论
John D'Errico
John D'Errico 2018-10-29
Which MATLAB release? You might check this page to start:
https://www.mathworks.com/discovery/matlab-gpu.html
B Janssen
B Janssen 2018-10-29
Hi John, I'm using R2018a. Thanks for the link; I'll check it out! Barry

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2018-10-29
R2018a requires a 9 series cuda driver, but the maximum available for osx 10.11 was an 8 series driver. You will not be able to use gpu unless you go back to an earlier release.
Note: your version of MATLAB is the last one that supports your osx version.
(I am in the same situation.)
  3 个评论
Walter Roberson
Walter Roberson 2018-10-29
The combination OS-X 10.11.6, MATLAB R2017b, Cuda Driver version 8.0.90, GPU Driver version 10.10.14 310.42.25f02 works on my system. (The driver information is from the CUDA system preferences.)
Walter Roberson
Walter Roberson 2018-10-31
Note: your MacBook Pro 2009 is not supported by MacOS Majove, which requires mid-2012 or newer. El Capitan is the OS-X release for your hardware; Sierra requires MacBook Pro mid 2010 or newer.
I am running R2018b on my El Capitan system; the only difficulties I have noticed are for GPU use.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

产品


版本

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by