Odd issue with Iray Rendering not using GPU
Hello, I've recently have an odd issue where the GPU isn't being used to render at all.
Seems i'm getting errors with GPU but have no idea why it's giving the errors.. it worked just fine in the past, and it works for everything else.
Going to try a clean re-install of the driver and see if that fixes it, any ideas would be great beyond that
2020-06-05 23:37:38.332 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Emitter geometry import (1 light source with 2 triangles, 1 instance) took 0.000s
2020-06-05 23:37:38.332 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Updating environment.
2020-06-05 23:37:38.340 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Updating backplate.
2020-06-05 23:37:38.341 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Updating lens.
2020-06-05 23:37:38.341 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Updating lights.
2020-06-05 23:37:38.341 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Updating object flags.
2020-06-05 23:37:38.341 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Updating caustic portals.
2020-06-05 23:37:38.341 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Updating decals.
2020-06-05 23:37:38.342 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:38.344 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Allocating 1-layer frame buffer
2020-06-05 23:37:38.346 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Using interactive scheduling, caustic sampler disabled
2020-06-05 23:37:38.346 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Initializing local rendering.
2020-06-05 23:37:38.346 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: CUDA device 0 (GeForce RTX 2070 SUPER): invalid program counter (while allocating host mapped memory buffer)
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: CUDA device 0 (GeForce RTX 2070 SUPER): device cannot be used as it does not support mapped memory (canMapHostMemory)
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : All available GPUs failed.
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : No devices activated. Enabling CPU fallback.
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: CUDA device 0 (GeForce RTX 2070 SUPER): Device initialization failed, will not be used
2020-06-05 23:37:38.347 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Rendering with 0 device(s):
2020-06-05 23:37:38.347 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Rendering...
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: No worker to render with: aborting render
2020-06-05 23:37:38.347 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : CPU: using 24 cores for rendering
2020-06-05 23:37:38.347 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Rendering with 1 device(s):
2020-06-05 23:37:38.347 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : CPU
2020-06-05 23:37:38.347 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Rendering...
2020-06-05 23:37:38.347 Iray [VERBOSE] - IRAY:RENDER :: 1.65 IRAY rend progr: CPU: Processing scene...
2020-06-05 23:37:38.347 Iray [INFO] - IRAY:RENDER :: 1.42 IRAY rend info : Initializing Embree
2020-06-05 23:37:40.464 Iray [INFO] - IRAY:RENDER :: 1.42 IRAY rend info : Importing lights for motion time 0
2020-06-05 23:37:40.464 Iray [INFO] - IRAY:RENDER :: 1.42 IRAY rend info : Initializing light hierarchy.
2020-06-05 23:37:40.465 Iray [INFO] - IRAY:RENDER :: 1.42 IRAY rend info : Light hierarchy initialization took 0.001s
2020-06-05 23:37:40.499 Iray [VERBOSE] - IRAY:RENDER :: 1.42 IRAY rend stat : Native CPU code generated in 0.031s
2020-06-05 23:37:40.557 Iray [INFO] - IRAY:RENDER :: 1.65 IRAY rend info : CPU: Scene processed in 2.210s
2020-06-05 23:37:40.559 Iray [INFO] - IRAY:RENDER :: 1.42 IRAY rend info : CPU: Allocated 7.73644 MiB for frame buffer
2020-06-05 23:37:40.641 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - POST:RENDER :: 1.0 POST rend warn : renderer iray has no more devices available. Postprocessing falling back to CPU.
2020-06-05 23:37:40.646 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00001 iterations after 2.293s.
2020-06-05 23:37:40.648 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:40.649 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Rendering...
2020-06-05 23:37:40.801 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00003 iterations after 2.444s.
2020-06-05 23:37:40.802 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:40.949 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00005 iterations after 2.593s.
2020-06-05 23:37:40.950 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:41.128 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00007 iterations after 2.772s.
2020-06-05 23:37:41.129 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:41.271 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00009 iterations after 2.915s.
2020-06-05 23:37:41.272 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:41.405 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00011 iterations after 3.049s.
2020-06-05 23:37:41.406 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:41.548 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00013 iterations after 3.192s.
2020-06-05 23:37:41.549 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:41.705 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00015 iterations after 3.349s.
2020-06-05 23:37:41.706 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:41.851 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00017 iterations after 3.495s.
2020-06-05 23:37:41.853 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:41.997 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00019 iterations after 3.641s.
2020-06-05 23:37:41.998 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:42.154 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00021 iterations after 3.798s.
2020-06-05 23:37:42.155 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:42.311 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00023 iterations after 3.955s.
2020-06-05 23:37:42.312 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:42.447 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00025 iterations after 4.090s.
2020-06-05 23:37:42.448 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:42.614 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00027 iterations after 4.258s.
2020-06-05 23:37:42.619 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:42.772 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00029 iterations after 4.416s.
2020-06-05 23:37:42.773 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:42.930 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00031 iterations after 4.574s.
2020-06-05 23:37:42.931 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:43.076 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Received update to 00033 iterations after 4.720s.
2020-06-05 23:37:43.077 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:43.220 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Device statistics:
2020-06-05 23:37:43.220 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : CPU: 33 iterations, 2.217s init, 2.521s render
Comments
@Xenos666
Unless you give some info on your Studio version, your specific GPU and the NVidia dirver version, folks can't be much help.
Fastbike1 is correct, but I have the same/similar issue and have an open ticket with Tech Support, as described below.
Bottom line: I upgraded Daz per Install Manager, lost ability to iRay render. Again. Same thing happened to many of us last year.
****
Upgrading to 4.12.1.117 cancelled my ability to render (again). Can you please send me an installer for the previous build?
This is the second upgrade where this has happened; last time it was fixed 8 months later with an eventual MSI video driver update. This time, I have the latest drivers and don't feel like waiting another 8 months.
Specs:
MSI GT62VR 6RE Dominator Pro Laptop
Windows 64 bit
48GB Ram
NVidia GTX1070 8gb Graphics
Graphics Driver: 22.21.13.8205, 5/1/2017
2020-06-06 11:47:01.673 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Using batch scheduling, caustic sampler disabled
2020-06-06 11:47:01.673 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(353): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: Cannot render: found no usable devices.
2020-06-06 11:47:01.679 Iray Render error: Invalid parameters (NULL pointer).
***
I'd be happy to go back to the prior version, if I cant get it.
As for my OTHER 64gb, Win10, DUAL 980Ti, 32core, Daz 4.10.0.123 backup renderbox - it is NEVER getting upgraded, just for this reason.
@Xeno666
I read your log, and it seems your Driver may be newer than your Daz.
You are getting "The 'iray_optix_prime' scene option is no longer supported." errors, and the latest Daz has removed that option (iray_optix_prime) from the UI.
So, uncheck that option and give it a whirl.
****
2020-06-05 23:37:38.342 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : The 'iray_optix_prime' scene option is no longer supported.
2020-06-05 23:37:38.344 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Allocating 1-layer frame buffer
2020-06-05 23:37:38.346 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Using interactive scheduling, caustic sampler disabled
2020-06-05 23:37:38.346 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : Initializing local rendering.
2020-06-05 23:37:38.346 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: CUDA device 0 (GeForce RTX 2070 SUPER): invalid program counter (while allocating host mapped memory buffer)
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: CUDA device 0 (GeForce RTX 2070 SUPER): device cannot be used as it does not support mapped memory (canMapHostMemory)
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : All available GPUs failed.
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [WARNING] - IRAY:RENDER :: 1.0 IRAY rend warn : No devices activated. Enabling CPU fallback.
2020-06-05 23:37:38.347 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.0 IRAY rend error: CUDA device 0 (GeForce RTX 2070 SUPER): Device initialization failed, will not be used
***
If that still fails, try plan B: upgrade Daz. WARNING: If possible, SAVE your current installation of Daz (copy the daz folder?) or it's installer before upgrading, then try upgrading to Daz 4.12.1.117, which Install Manager should let you do. For me it was in the Upgrades list. (Boy do I regret tapping THAT.) Again, this is because the latest Daz has removed that option (iray_optix_prime) from the UI.
Good luck!
I figured it out, thankfully it was just an odd issue with my GPU overclock, seems it was stable for everything but Daz.. lowered it a bit, everything working now.
MSI does not make drivers. Your problem is almost certainly that you are not getting the correct up to date driver from Nvidia.
I have tried it on 4.12.1.117 and it's not recognising my GPU either. I installed the most recent drivers, release on 27th May 2020 and it STILL won't work.
This is the last of my log file, when trying to render with iray:
There's no option any longer to untick OptiX Prime in DS so not sure how to fix this. I installed the update via DIM and it was working properly recently but now it's not and I don't know what to do.
My setup is a custom built PC
AMD Ryzen 5 1600 6-Core 3.69GHz processor
GeForce GTX 980 Ti
Graphic driver: 26.21.14.4614
Driver Date: 15/05/2020
16Gb DDR memory
64-bit Windows10 Home
The log says the scene exceeds the GPU VRAM.
If you can't render a very basic scene, a single prinmitive with a texture then let us know.
VERY Good Point!! -- I must have reinstalled the original 2017 driver. (Also explains why my HDR output to the 4K went caput; thought that one was the Microsoft Update's fault.)
Let me try the latest NVidia. I'll post an update after. Thanks!
Update:
HORRAY!
That worked like a charm! -- Thanks, @KenShaw011267
so, this was from a different scene....
I'm guessing it's just my poor 980 Ti showing its age...??? Roll on the 3000 series release
No. The first scene was larger than 6Gb and the second wasn't. iRay can only use a GPU if the scene fits in the cards VRAM.
Except the first scene was not larger than 6gb.....
2020-06-06 20:31:13.334 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(353): Iray [ERROR] - IRAY:RENDER :: 1.11 IRAY rend error: OptiX Prime error (Device rtpModelUpdate BL): Memory allocation failed (Function "_rtpModelUpdate" caught exception: Encountered a CUDA error: launchAPMInit() returned (2): out of memory)
That line there in the first one, means it ran out of memory. It did it right after geometry, which is when it loads in the textures. If you saved the first scene, you could try it after a fresh open of DS, if it drops again, you will need to do something about making the textures take up less memory. Personally I use the scene optimizer product when I need to do that, makes it quicker and easier than manually resizing and relinking textures in the scene.
@Dark-Elf "Except the first scene was not larger than 6gb...."
You can't tell how large the scene is in Iray from looking at the size on the HD or in CPU ram. Use GPU-z to tell you how much Vram is used.
hey which clock speed is good for daz. My daz is freezing cant render anything even my old scene which used to render properly