MATLAB/Computer Crash using GPU Computing on MacBook Pro (OS X 10.9.2)

1 view (last 30 days)
I've been having a problem where MATLAB when using GPU Computing (Macbook 10,1; Mac OS X 10.9.2; MATLAB 2013b; CUDA Driver 5.5.47). For one of my scripts, it starts processing fine, but then crashes and makes the entire computer unresponsive (can't even move the mouse on the screen, no response to keyboard) and I have to force it to reboot. Updating the CUDA driver to the version specified above didn't fix it. Every time this happens the system log shows:
3/7/14 8:30:26.163 AM sandboxd[937] ([906]) CVMCompiler(906) deny mach-lookup com.apple.distributed_notifications@Uv3
3/7/14 8:31:09.000 AM kernel[0] NVDA(Compute): Channel timeout!
3/7/14 8:31:09.068 AM mds[67] (Warning) Volume: vsd:0x7fb03a012600 Open failed. failureCount:7 {
DisabledRecycleCount = 7;
}
3/7/14 8:31:10.124 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 9 seconds
3/7/14 8:31:19.137 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:31:29.150 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:31:30.000 AM kernel[0] NVDA(Compute): Channel timeout!
3/7/14 8:31:30.039 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:31:41.119 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 9 seconds
3/7/14 8:31:50.132 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:31:51.000 AM kernel[0] NVDA(Compute): Channel timeout!
3/7/14 8:31:51.054 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:32:02.144 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 9 seconds
3/7/14 8:32:11.157 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:32:12.000 AM kernel[0] NVDA(Compute): Channel timeout!
3/7/14 8:32:12.069 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:32:23.156 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 9 seconds
3/7/14 8:32:32.169 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:32:33.000 AM kernel[0] NVDA(Compute): Channel timeout!
3/7/14 8:32:33.084 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 10 seconds
3/7/14 8:32:44.159 AM com.apple.launchd[1] (com.apple.DumpGPURestart) Throttling respawn: Will start in 9 seconds
The script I'm running repeatedly calls the following function, which is where I assume the crash occurs:
function Y_0S4=cyclic_cum4_gpu(x, Jfb, Jd)
if length(x)<Jfb
x=[x;zeros(Jfb-length(x),1)];
end
Nv=length(x)-Jfb+1;
x_idx = repmat(uint32([1:Jfb]'),1,Nv)+repmat(uint32(0:Nv-1),Jfb,1);
z=gpuArray.zeros(Jfb,Nv);
z(:)=x(x_idx);
clear x_idx;
y=fft(z,[],1);
clear x2
yy = y.*conj(y);
YM4 = gpuArray.zeros(Jfb, Jfb);
tic
for k=1:Nv
YM4=YM4+yy(:,k)*yy(:,k)';
end
toc
YM4=YM4/Nv;
clear yy
YS2p=gpuArray.zeros(Jfb,Jfb,Jd);
YM2p=gpuArray.zeros(Jfb,Jfb,Jd);
ys2=gpuArray.zeros(Jfb,1);
YS2p_tmp=gpuArray.zeros(Jfb,Jfb);
YM2p_tmp=gpuArray.zeros(Jfb,Jfb);
tic
for p=1:Jd
Nvp=floor((length(x)-Jfb+1-p)/Jd+1);
y_idx = p+((1:Nvp)-1)*Jd;
YS2p_tmp(:)=gpuArray.zeros(Jfb,Jfb);
YM2p_tmp(:)=gpuArray.zeros(Jfb,Jfb);
for k=1:Nvp
YS2p_tmp=YS2p_tmp+y(:,y_idx(k))*y(:,y_idx(k))';
YM2p_tmp=YM2p_tmp+y(:,y_idx(k))*y(:,y_idx(k)).';
end
YS2p(:,:,p)=YS2p_tmp/Nvp;
YM2p(:,:,p)=YM2p_tmp/Nvp;
ys2=ys2+diag(YS2p(:,:,p))/Jd;
end
toc
Y_0S4=gather(YM4-sum(YS2p.*conj(YS2p),3)/Jd-sum(YM2p.*conj(YM2p),3)/Jd-ys2*ys2.');
Any suggestions as to how to avoid/fix this problem would be helpful. Thanks.

Answers (1)

Image Analyst
Image Analyst on 7 Mar 2014
  1 Comment
Christopher
Christopher on 7 Mar 2014
Linking to a page telling me to contact Mathworks is not the most helpful of responses. That was my next step if no one had any useful responses (since it's unlikely I'm the only person to have experienced it), and whatever response I got I would add to this thread so others could find a solution without contacting Mathworks.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!