Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
Matthew
Posts:
64
Registered:
6/7/10
|
|
new GPU memory managment?
Posted:
Oct 27, 2012 7:16 PM
|
|
Was there an update to the GPU memory management in 2012b that isn't mentioned in the release notes?
I just installed 2012b on a new machine and was stressing the GPU to see how many parallel workers I could run. When I would perform this test under 2011b, as soon as I ran out of GPU memory , the process would crash and inform me that the GPU was out of memory. I attempted this exact test on 2012b, but never got the error. Instead I noticed that at some point, my CPU and physical memory usage skyrocketed, as if matlab recognized the GPU was failing and started transparently passing work off to the CPU.
the code I'm running looks similar to this:
%%%%%%%%%%%%%%
numWorkers = 2
matlabpool numWorkers
tic; spmd
a = gpuArray(rand(3000,4000)); b = gpuArray(rand(3000,4000));
for i=1:5 c = gather(ifft2(a.*b)); end
end
toc %%%%%%%%%%%%%%%%
If this is indeed what is happening, is there a way to disable this behavior? My actual processing routines that take a few hours on the GPU would take days on the CPU, so I'd much rather have a process crash and alert me instead of chug along without any sort of warning that something isn't right.
|
|
|
|