Unable to allocate X bytes from (x*4) bytes of available device memory
Hi all,
My 2080TI went space invaders and is in the process of being RMA'd, so I'm dusting off my older card, a 1660 Super. However, I'm having an error about it not being able to allocate literally a quarter of its available VRAM.
I've read these errors and people always say it's a lack of VRAM but it makes zero sense here, unless the log is straight up lying.
I have GPU-Z running and Task Manager running. GPU-Z says I'm using ~450mb dedicated vram out of 6GB. Task Manager says 1.4GB. For the sake of argument I'll take the higher, which also aligns roughly with Daz sees. (6GB - 1.2GB = 4.8GB, available RAM is ~4.3, close enough).
Even the WORST CASE suggests I shouild be able to fit this scene in at least twice, if not three times.
I'm on Windows 10, latests Nvidia drivers, Daz 4.12, 1660 Super. I've restarted, I've restarted the device from Device Manager. I've even tried the ctrl+alt+windows+B thing.
What gives. Error below. I can provide screenshots if someone doesn't believe me.
2020-11-21 00:47:45.729 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.4 IRAY rend error: Unable to allocate 1122555264 bytes from 4280641945 bytes of available device memory
2020-11-21 00:47:51.473 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.8 IRAY rend error: CUDA device 0 (GeForce GTX 1660 SUPER): Scene setup failed
2020-11-21 00:47:51.486 WARNING: ..\..\..\..\..\src\pluginsource\DzIrayRender\dzneuraymgr.cpp(305): Iray [ERROR] - IRAY:RENDER :: 1.8 IRAY rend error: CUDA device 0 (GeForce GTX 1660 SUPER): Device failed while rendering
Comments
Does the available memory decrease earlier in the log, as it allocates space for other things?
I don't see anything about memory between the failing and the initialization of the GPU:
2020-11-21 00:37:48.221 NVidia Iray GPUs:
2020-11-21 00:37:48.221 GPU: 1 - GeForce GTX 1660 SUPER
2020-11-21 00:37:48.221 Memory Size: 5.9 GB
2020-11-21 00:37:48.221 Clock Rate: 1830000 KH
2020-11-21 00:37:48.221 Multi Processor Count: 22
2020-11-21 00:37:48.221 CUDA Compute Capability: 7.5
2020-11-21 00:37:48.221 Iray [INFO] - IRT:RENDER :: 1.0 IRT rend info : Resource assignment for host 0 has changed.
2020-11-21 00:37:48.227 GPU: 2 - GeForce GTX 970
2020-11-21 00:37:48.227 Memory Size: 3.9 GB
2020-11-21 00:37:48.227 Clock Rate: 1177500 KH
2020-11-21 00:37:48.227 Multi Processor Count: 13
2020-11-21 00:37:48.227 CUDA Compute Capability: 5.2
2020-11-21 00:37:48.227 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : CUDA device 0 (GeForce GTX 1660 SUPER): compute capability 7.5, 6 GiB total, 4.93556 GiB available, display attached
2020-11-21 00:37:48.227 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : CUDA device 0 (GeForce GTX 1660 SUPER): WDDM driver used, consider switching to TCC driver model if no display needed (via 'nvidia-smi -dm 1'), to increase rendering performance
2020-11-21 00:37:48.232 Iray [INFO] - IRAY:RENDER :: 1.0 IRAY rend info : iray photoreal CPU fallback is enabled.
2020-11-21 00:37:48.300 Iray [INFO] - SCENE:IO :: 1.0 SCENE io info : Loading module "::nvidia::lights_photometric" from "C:\Program Files\DAZ 3D\DAZStudio4\shaders\iray\nvidia\lights_photometric.mdl".
2020-11-21 00:37:48.300 Iray [INFO] - SCENE:IO :: 1.0 SCENE io info : Loading module "::daz_3d::property_annotations" from "C:\Program Files\DAZ 3D\DAZStudio4\shaders\iray\daz_3d\property_annotations.mdl".
2020-11-21 00:37:48.306 Iray [INFO] - SCENE:IO :: 1.0 SCENE io info : Loading module "::daz_3d::basic" from "C:\Program Files\DAZ 3D\DAZStudio4\shaders\iray\daz_3d\basic.mdl".
2020-11-21 00:37:48.377 Iray [INFO] - SCENE:IO :: 1.0 SCENE io info : Loading module "::daz_3d::irayubermaterial" from "C:\Program Files\DAZ 3D\DAZStudio4\shaders\iray\daz_3d\irayubermaterial.mdl".
2020-11-21 00:37:48.402 Iray [INFO] - SCENE:IO :: 1.0 SCENE io info : Loading module "::nvidia::axf_importer::axf_importer" from "C:\Program Files\DAZ 3D\DAZStudio4\shaders\iray\nvidia\axf_importer\axf_importer.mdl".
2020-11-21 00:37:48.443 Iray [INFO] - SCENE:IO :: 1.0 SCENE io info : Loading module "::nvidia::core_definitions" from "C:\Program Files\DAZ 3D\DAZStudio4\shaders\iray\nvidia\core_definitions.mdl".
2020-11-21 00:37:48.473 Total class factories: 2153
2020-11-21 00:37:48.473 Iray [VERBOSE] - IRAY:RENDER :: 1.1 IRAY rend stat : Environment cache size capacity: 5.
2020-11-21 00:37:48.476 Creating Script Engine...
2020-11-21 00:37:48.494 WARNING: 3DConnexion Plug-in Error: Could not create Device, CoCreateInstance failed
2020-11-21 00:37:48.500 3D mouse support library could not be loaded.
2020-11-21 00:37:48.503 Creating Main Window...
2020-11-21 00:37:48.503 Creating Viewport Manager...
2020-11-21 00:37:48.638 Successfully created OpenGL viewport for Viewport1.
2020-11-21 00:37:49.051 Successfully created OpenGL viewport for Viewport2.
2020-11-21 00:37:49.282 Successfully created OpenGL viewport for Viewport3.
2020-11-21 00:37:49.559 Successfully created OpenGL viewport for Viewport4.
2020-11-21 00:37:49.760 Creating Action Manager...
2020-11-21 00:37:49.776 Creating Pane Manager...
2020-11-21 00:37:50.171 Successfully created OpenGL viewport for AuxViewportView.
2020-11-21 00:37:50.720 WARNING: QLayout::addChildLayout: layout "" already has a parent
2020-11-21 00:37:50.721 WARNING: QLayout::addChildLayout: layout "" already has a parent
2020-11-21 00:37:51.498 Executing startup script...
2020-11-21 00:37:51.553 Started in: C:/Program Files/DAZ 3D/DAZStudio4
2020-11-21 00:37:51.553 DAZ Studio Started
2020-11-21 00:37:51.553 Creating Pixel Buffer
2020-11-21 00:37:51.702 Pixel buffer - Width: 1024 Height: 1024
2020-11-21 00:37:51.703 Compiling OpenGL Shader...
2020-11-21 00:37:51.706 Fragment Shader:
Fragment Shader compiled successfully.
Linking Shader:
Shader Program successfully linked.
Between the two there. Just loading images.
So you don't have any of these messages?
Are you starting DS then loading the scene and hitting render, or starting DS by double-clicking the scene file?
Double clicking the scene file, is one better than the other?
I do, kind of. Interestingly it doesn't include texture or light measurements:
I have two GPUs, a 970 and a 1060. I use my 1060 and my CPU for rendering and my 970 I use for interactive (screenshot attached).
It may be worth trying to open DS, then load the file and render - I doubt it would matter but there's alwats aslight possibility. You might also try unchecking the CPU - a lot of people report that having the CPU both render itself and manage the GPU is slower then using only the GPU.