The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: new GPU memory managment?
Replies: 4   Last Post: Mar 5, 2013 1:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 64
Registered: 6/7/10
new GPU memory managment?
Posted: Oct 27, 2012 7:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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


a = gpuArray(rand(3000,4000));
b = gpuArray(rand(3000,4000));

for i=1:5
c = gather(ifft2(a.*b));



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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.