Cuda Error: Out of memory

Just verifying if this is because I need more system memory or if it is because I need more graphics card memory.

2023-01-03 20:52:17.089 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.6   IRAY   rend error: CPU: Failed to allocate 266.968 MiB
2023-01-03 20:52:17.094 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.6   IRAY   rend error: CPU: Failed to allocate 533.943 MiB for (device) frame buffer, cannot use this device
2023-01-03 20:52:17.094 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.6   IRAY   rend error: CPU: Failed to setup device frame buffer
2023-01-03 20:52:17.095 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.6   IRAY   rend error: CPU: Device failed while rendering
2023-01-03 20:52:17.096 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [WARNING] - IRAY:RENDER ::   1.6   IRAY   rend warn : CPU is no longer available for rendering.
2023-01-03 20:52:17.296 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.6   IRAY   rend error: CPU: [Guidance sync] Failed slave device (remaining 2, done 0).
2023-01-03 20:52:17.446 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.4   IRAY   rend error: CUDA error: out of memory
2023-01-03 20:52:17.449 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.2   IRAY   rend error: CUDA device 0 (NVIDIA GeForce RTX 3090): Scene setup failed
2023-01-03 20:52:17.452 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.2   IRAY   rend error: CUDA device 0 (NVIDIA GeForce RTX 3090): Device failed while rendering
2023-01-03 20:52:17.486 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.5   IRAY   rend error: CUDA error: out of memory
2023-01-03 20:52:17.487 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.3   IRAY   rend error: CUDA device 1 (NVIDIA GeForce RTX 3090): Scene setup failed
2023-01-03 20:52:17.496 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [WARNING] - IRAY:RENDER ::   1.2   IRAY   rend warn : CUDA device 0 (NVIDIA GeForce RTX 3090) ran out of memory and is temporarily unavailable for rendering.
2023-01-03 20:52:17.563 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.2   IRAY   rend error: CUDA device 0 (NVIDIA GeForce RTX 3090): [Guidance sync] Failed slave device (remaining 1, done 0).
2023-01-03 20:52:17.565 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.3   IRAY   rend error: CUDA device 1 (NVIDIA GeForce RTX 3090): Device failed while rendering
2023-01-03 20:52:17.566 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [WARNING] - IRAY:RENDER ::   1.3   IRAY   rend warn : CUDA device 1 (NVIDIA GeForce RTX 3090) ran out of memory and is temporarily unavailable for rendering.
2023-01-03 20:52:17.643 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.3   IRAY   rend error: All workers failed: aborting render
2023-01-03 20:52:17.643 [WARNING] :: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(369): Iray [ERROR] - IRAY:RENDER ::   1.3   IRAY   rend error: CUDA device 1 (NVIDIA GeForce RTX 3090): [Guidance sync] Failed slave device (remaining 0, done 0).
2023-01-03 20:52:17.649 [ERROR] Iray :: Internal rendering error.

Comments

  • Yeah. Your GPU ran out of memory

  • Damn.  Was hoping that upgrading the board, processor and upping to 128gb would have resolved it.  But if the only fix is gpu then this scene is going to need a lot of editing.  Wish daz3d allowed SLI to double up the memory.

  • kyoto kidkyoto kid Posts: 41,058

    ...it should have fell back to the CPU.

  • PerttiAPerttiA Posts: 10,024

    hot88stang_21e963c5c7 said:

    Damn.  Was hoping that upgrading the board, processor and upping to 128gb would have resolved it.  But if the only fix is gpu then this scene is going to need a lot of editing.  Wish daz3d allowed SLI to double up the memory.

    The 3090 has connectors for NVLink, which can be used to share VRAM between identical cards for textures (but not geometry)

  • I may try that NVlink.  Didn't know it worked for Daz Studio.  Also I am still upgrading my system as it is 3 years old.

    I want to run
    AMD 7950x
    64gb DDR5 5600 (Might wait a month to add the other 64gb as to budget)
    Samsung Pro M.2 SSD x4
    RTX 3090 x2

    I have another RTX 3090 but have yet to find a mobo that supports 3 founders editions without putting them too close to each other and overheating the bottom 2 cards.  Thought water cooling but the water cooling kits are another big chunk of change.

  • PerttiAPerttiA Posts: 10,024

    Somewhere on this thread there are also systems with NVLink.

    https://www.daz3d.com/forums/discussion/341041/daz-studio-iray-rendering-hardware-benchmarking/p1

    You better get 128GB's of RAM if you are already running out of VRAM with 24GB's, the rule of thumb has been "Three times more RAM than VRAM"

  • So, I hope someone has an anwer. I keep getting the same rendering issues, that I have run out of VRAM. I have a GTX 3080Ti. I am NOT running out of VRAM. I have plenty of VRAM. The issue is Daz3d. Has anyone come up with a fix for this? I never had the issue until the more recent DAZ updates. Luckily, I found a 4.12 old install of Daz3d but would prefer to use the newer versions. Anyone have any insight? Any settings I might need to do on the newer versions of Daz3d. Again, before anyone posts, I never had issues with my much older video card, this newer video card is a monster compared to that old one. This is an issue with the newer versions of Daz3d, not the video card not having enough memory, I see that all over the place, that makes no sense. When I first got it in 2020, my renders lasted minutes instead of hours, and seconds instead of minutes, and never had a memory issue. Am I missing something in the settings, either video card or Daz? I shouldn't have to "drop" back to CPU, my video card can handle it. 

    Any thoughts would be greatly appreciated.

    Thanks in advance.

  • PerttiAPerttiA Posts: 10,024

    How do you know that you are not running out of VRAM?

  • PadonePadone Posts: 3,700
    edited May 2023

    The new versions of iray use optix that requires more vram for the working buffers compared to cuda, especially on gtx cards where rtx cores are emulated by software and take more vram. Your only options are to update the card or use a old version of daz studio. Of course you can always use the scene optimizer to try to fit the scene.

    Personally I export to blender where I can use cuda. Apart that blender is also rendering on AMD and Intel, plus many other benefits.

    Post edited by Padone on
Sign In or Register to comment.