gpu array calculation limited memory
1 view (last 30 days)
Show older comments
Hi, i have a quadro 2200 with 4 gig ram. I would like to do a calculation with a variable that is 6 gigabytes big. Since gpuarray is limited, I wanted to know if there is any other solutiob
2 Comments
Accepted Answer
Matt J
on 21 Dec 2014
Edited: Matt J
on 21 Dec 2014
You should clear memory on the GPU before doing further calculations. For example, if y1 is the gpuArray resulting from the calculation with x1, then you could clear x1 and bring y1 back to the CPU with,
clear x1
y1=double(y1);
This will free memory on the GPU for x2.
3 Comments
More Answers (0)
See Also
Categories
Find more on GPU Computing in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!