Is there a limit in the available GPU memory in mex files using cuda code?
Mostra commenti meno recenti
I've write a code to perform 3d linear interpolation in the GPU using the texture feature. The code runs correctly for images of about 128x128x120, but for images of greater size the mex function returns an image filled with zeros, and no error message appears. I allocate GPU memory using cudaMalloc(), in total 9 times the size of the initial image size. So for an image of 128x128x121 the total amount of memory I would allocate in the GPU (float elements) is 128*128*121*9*4 ~ 72MB which is way below the memory size of my GPU (2GB). So I was wondering if Matlab limits somehow the amount of memory I can use ina mex function using CUDA. Otherwise I would like to know if you could help me in finding the error. Thanks
1 Commento
Alan Miranda
il 31 Mag 2018
Risposte (0)
Categorie
Scopri di più su GPU Computing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!