RAM issue or GPU issue?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
My task is to perform iterative 3D MRI image reconstruction through GPU. The matrix size (data) would be 384 x 384 x 384 x 30 x 5 x 2 with single precision, complex numbers. That is usual matrix size, and would be extended larger (512 x 512 x 512 x 30 x 30 x 10). For this, 'gpuNUFFT' function in MATLAB ( https://github.com/andyschwarzl/gpuNUFFT ) was used. The first trial for image reconstruction was done in a workstation (Windows 10) consisting of Xeon, 256 Gbyte RAM, NVIDIA TESLA P100 32GB, but the MATLAB (R2017b) was suddenly shutdown. It looked kind of memory issue.
Did anybody have similar experiences? and could anybody identify which one is the issue, RAM or GPU? If possible, advise minimum requirements of the GPU machine for this task, please.
Thanks!
2 Kommentare
Voss
am 29 Jun. 2020
A matrix of that size and class (single complex) will take up about 127 GB of RAM, which is pretty close to half your total RAM, so if you have any operations in your code where MATLAB is going to make a temporary copy of that matrix, you're very likely to run out of memory. (The extended matrix size would take about 9000 GB, in which case you're guaranteed to run out of memory.) My guess would be that it was indeed a memory issue, and it might be a good idea to figure out an alternative method whereby the entire matrix doesn't need to be loaded into RAM at one time (and such a method will be required if you move to the extended matrix size).
However, MATLAB doesn't usually shutdown suddenly when it runs out of memory; it usually throws an Out Of Memory error, so I could be wrong. I'm mostly speculating based on the specified matrix size and amount of RAM.
Antworten (0)
Siehe auch
Kategorien
Mehr zu GPU Computing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!