MATLAB: Gpu array calculation limited memory

memory gpu

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

Best Answer

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.