[Rtk-users] reconstruction by cuda occur problem: ITK ERROR: CUDA ERROR: out of memory

Simon Rit simon.rit at creatis.insa-lyon.fr
Fri Apr 12 09:26:35 CEST 2024


Hi,
Your projections alone are 16.5 GB on the GPU and the volume 2.6 GB before
doing any calculation. Since your GPU has 24 GB memory, you're flirting
with the limit, hence the issue I guess. I would suggest to add these lines
before "# Field-of-view masking":
  os.system('nvidia-smi')
  print(projections.GetOutput().GetCudaDataManager().GetGPUBufferPointer())
  os.system('nvidia-smi')
  feldkamp.Update()
  os.system('nvidia-smi')
You'll most likely not reach the third nvidia-smi but you'll have a better
understanding of the issue.
Simon


On Fri, Apr 12, 2024 at 8:59 AM ...... <1533168486 at qq.com> wrote:

> Hello all,
> I tried reconstruction my projection data by cudaFDK, and my data is
> 360*3008*2048 with type uint16. I set my output volumn size as 752*752*624.
> When I run my code with GPU(GeForce RTX 4090), there appear the error:
>
>
> I checked the code execution process and during this period, the GPU's
> memory was still very sufficient. I reduce the size of my data to
> 360*1504*1024 and other items remain unchanged. This  code can run
> without error.
> The attachment is my code. Any help will be appreciated.
> Sincerely,
> ------------------------------
> ......
> 1533168486 at qq.com
>
> <https://wx.mail.qq.com/home/index?t=readmail_businesscard_midpage&nocheck=true&name=......&icon=http%3A%2F%2Fthirdqq.qlogo.cn%2Fg%3Fb%3Doidb%26k%3DaU2UicjBCZHhOuTg0I8eaAQ%26kti%3DZNG2GAAAAAI%26s%3D640%26t%3D1557079014&mail=1533168486%40qq.com&code=MxmxlJaC2QgJPGkeK0WWGn27E_Hxxdg4z_yHE18lRA4Xk7gMOGcWVLQlSeT63-65rHTBwEDtE8Q5X12n2MGehA>
>
> _______________________________________________
> Rtk-users mailing list
> rtk-users at openrtk.org
> https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20240412/db53760d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 93ED296F at 37B4E37B.4C8C1866.jpg
Type: image/jpeg
Size: 75635 bytes
Desc: not available
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20240412/db53760d/attachment-0001.jpg>


More information about the Rtk-users mailing list