Unable to allocate X bytes from (x*4) bytes of available device memory

ParadigmParadigm Posts: 421

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

Post edited by Paradigm on

Comments

  • Does the available memory decrease earlier in the log, as it allocates space for other things?

  • ParadigmParadigm Posts: 421

    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?

    2020-11-23 01:20:31.575 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating geometry.
    2020-11-23 01:20:31.575 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating motion transforms.
    2020-11-23 01:20:31.575 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Importing scene graph.
    2020-11-23 01:20:31.678 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Auto instancing compression ratio 1.00 (Full instancing compression ratio 1.00)
    2020-11-23 01:20:31.678 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Importing geometry for motion time 0
    2020-11-23 01:20:31.923 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Geometry import (1 triangle object with 1872k triangles, 0 fiber objects with 0 fibers (0 segments), 1 triangle instance yielding 1872k triangles, 0 fiber instances yielding 0 segments) took 0.245s
    2020-11-23 01:20:31.924 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating materials.
    2020-11-23 01:20:32.028 Iray [INFO] - MATCNV:RENDER ::   1.0   MATCNV rend info : found 2178 textures, 0 lambdas (0 unique)
    2020-11-23 01:20:32.099 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Emitter geometry import (1 light source with 2 triangles, 1 instance) took 0.000s
    2020-11-23 01:20:32.100 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating environment.
    2020-11-23 01:20:32.108 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating backplate.
    2020-11-23 01:20:32.110 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating lens.
    2020-11-23 01:20:32.110 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating lights.
    2020-11-23 01:20:32.110 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating object flags.
    2020-11-23 01:20:32.112 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating caustic portals.
    2020-11-23 01:20:32.112 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating decals.
    2020-11-23 01:20:32.117 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Using iray core convergence estimate.
    2020-11-23 01:20:32.118 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Allocating 1-layer frame buffer
    2020-11-23 01:20:32.122 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Using batch scheduling, caustic sampler disabled
    2020-11-23 01:20:32.122 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Initializing local rendering.
    2020-11-23 01:20:32.124 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Using OptiX version 7.1.0
    2020-11-23 01:20:32.129 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Initializing OptiX for CUDA device 1
    2020-11-23 01:20:32.264 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Rendering with 1 device(s):
    2020-11-23 01:20:32.265 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info :     CUDA device 1 (GeForce GTX 1660 SUPER)
    2020-11-23 01:20:32.265 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Rendering...
    2020-11-23 01:20:32.265 Iray [INFO] - IRAY:RENDER ::   1.16  IRAY   rend progr: CUDA device 1 (GeForce GTX 1660 SUPER): Processing scene...
    2020-11-23 01:20:32.284 Iray [VERBOSE] - IRAY:RENDER ::   1.25  IRAY   rend stat : Geometry memory consumption: 73.500 MiB (device 1), 0.000 B (host)
    2020-11-23 01:20:36.213 Iray [VERBOSE] - IRAY:RENDER ::   1.25  IRAY   rend stat : Texture memory consumption: 1.537 GiB for 263 bitmaps (device 1)
    2020-11-23 01:20:36.213 Iray [INFO] - IRAY:RENDER ::   1.25  IRAY   rend info : Importing lights for motion time 0
    2020-11-23 01:20:36.213 Iray [INFO] - IRAY:RENDER ::   1.25  IRAY   rend info : Initializing light hierarchy.
    2020-11-23 01:20:36.214 Iray [INFO] - IRAY:RENDER ::   1.25  IRAY   rend info : Light hierarchy initialization took 0.001s
    2020-11-23 01:20:36.215 Iray [VERBOSE] - IRAY:RENDER ::   1.25  IRAY   rend stat : Lights memory consumption: 948.000 B (device 1)
    2020-11-23 01:20:36.230 Iray [VERBOSE] - IRAY:RENDER ::   1.25  IRAY   rend stat : Material measurement memory consumption: 0.000 B (GPU)
    2020-11-23 01:20:36.233 Iray [VERBOSE] - IRAY:RENDER ::   1.25  IRAY   rend stat : Materials memory consumption: 5.066 MiB (GPU)
    2020-11-23 01:20:36.323 Iray [INFO] - IRAY:RENDER ::   1.16  IRAY   rend info : CUDA device 1 (GeForce GTX 1660 SUPER): Scene processed in 4.058s
    2020-11-23 01:20:36.325 Iray [INFO] - IRAY:RENDER ::   1.16  IRAY   rend info : CUDA device 1 (GeForce GTX 1660 SUPER): Allocated 21.495 MiB for frame buffer
    2020-11-23 01:20:36.369 Iray [INFO] - IRAY:RENDER ::   1.16  IRAY   rend info : CUDA device 1 (GeForce GTX 1660 SUPER): Allocated 1.688 GiB of work space (2048k active samples in 0.041s)
    2020-11-23 01:20:36.369 Iray [INFO] - IRAY:RENDER ::   1.16  IRAY   rend info : CUDA device 1 (GeForce GTX 1660 SUPER): Used for display, optimizing for interactive usage (performance could be sacrificed)
    2020-11-23 01:20:36.660 Iray [INFO] - IRAY:RENDER ::   1.16  IRAY   rend info : Allocating 1-layer frame buffer

    Are you starting DS then loading the scene and hitting render, or starting DS by double-clicking the scene file?

  • ParadigmParadigm Posts: 421

    Double clicking the scene file, is one better than the other?

    I do, kind of. Interestingly it doesn't include texture or light measurements:

    2020-11-21 00:47:31.583 Iray [INFO] - MATCNV:RENDER ::   1.0   MATCNV rend info : found 2846 textures, 255 lambdas (22 unique)

    2020-11-21 00:47:31.777 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Emitter geometry import (94 light sources with 835k triangles, 1 instance) took 0.065s

    2020-11-21 00:47:31.778 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating environment.

    2020-11-21 00:47:33.915 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating backplate.

    2020-11-21 00:47:33.915 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating lens.

    2020-11-21 00:47:33.915 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating lights.

    2020-11-21 00:47:33.915 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating object flags.

    2020-11-21 00:47:33.916 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating caustic portals.

    2020-11-21 00:47:33.916 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Updating decals.

    2020-11-21 00:47:33.922 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-11-21 00:47:33.972 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Allocating 1-layer frame buffer

    2020-11-21 00:47:34.033 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Using batch scheduling, caustic sampler disabled

    2020-11-21 00:47:34.034 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Initializing local rendering.

    2020-11-21 00:47:34.058 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : CPU: using 15 cores for rendering

    2020-11-21 00:47:34.129 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Rendering with 2 device(s):

    2020-11-21 00:47:34.129 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : CUDA device 0 (GeForce GTX 1660 SUPER)

    2020-11-21 00:47:34.129 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : CPU

    2020-11-21 00:47:34.129 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Rendering...

    2020-11-21 00:47:34.135 Iray [VERBOSE] - IRAY:RENDER ::   1.8   IRAY   rend progr: CUDA device 0 (GeForce GTX 1660 SUPER): Processing scene...

    2020-11-21 00:47:34.135 Iray [INFO] - IRAY:RENDER ::   1.7   IRAY   rend info : Using Embree 2.8.0

    2020-11-21 00:47:34.136 Iray [INFO] - IRAY:RENDER ::   1.7   IRAY   rend info : Initializing Embree

    2020-11-21 00:47:34.137 Iray [VERBOSE] - IRAY:RENDER ::   1.2   IRAY   rend progr: CPU: Processing scene...

    2020-11-21 00:47:34.456 Iray [INFO] - IRAY:RENDER ::   1.4   IRAY   rend info : Using OptiX version 6.1.2

    2020-11-21 00:47:34.463 Iray [VERBOSE] - IRAY:RENDER ::   1.4   IRAY   rend stat : Geometry memory consumption: 791.99 MiB (device 0), 0 B (host)

    2020-11-21 00:47:35.090 Iray [INFO] - IRAY:RENDER ::   1.4   IRAY   rend info : Initializing OptiX for CUDA device 0

    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

    2020-11-21 00:47:55.298 Iray [INFO] - IRAY:RENDER ::   1.7   IRAY   rend info : Importing lights for motion time 0

    2020-11-21 00:47:55.311 Iray [INFO] - IRAY:RENDER ::   1.7   IRAY   rend info : Initializing light hierarchy.

    2020-11-21 00:48:00.105 Iray [INFO] - IRAY:RENDER ::   1.7   IRAY   rend info : Light hierarchy initialization took 4.794s

    2020-11-21 00:48:00.585 Iray [VERBOSE] - IRAY:RENDER ::   1.7   IRAY   rend stat : Native CPU code generated in 0.463s

    2020-11-21 00:48:01.332 Iray [INFO] - IRAY:RENDER ::   1.2   IRAY   rend info : CPU: Scene processed in 27.196s

    2020-11-21 00:48:01.422 Iray [INFO] - IRAY:RENDER ::   1.2   IRAY   rend info : CPU: Allocated 189.846 MiB for frame buffer

    2020-11-21 00:48:26.517 Iray [INFO] - IRAY:RENDER ::   1.2   IRAY   rend info : Allocating 1-layer frame buffer

    2020-11-21 00:48:26.710 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-11-21 00:48:26.981 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Received update to 00001 iterations after 52.845s.

    2020-11-21 00:48:27.205 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-11-21 00:48:52.788 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Received update to 00002 iterations after 78.652s.

    2020-11-21 00:48:52.958 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-11-21 00:49:18.451 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Received update to 00003 iterations after 104.314s.

    2020-11-21 00:49:18.595 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-11-21 00:49:27.988 Saved image: C:\Users\Josh\AppData\Roaming\DAZ 3D\Studio4\temp\render\r.png

    2020-11-21 00:49:27.993 Finished Rendering

    2020-11-21 00:49:28.069 Total Rendering Time: 2 minutes 53.53 seconds

    2020-11-21 00:49:29.548 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : Device statistics:

    2020-11-21 00:49:29.548 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : CUDA device 0 (GeForce GTX 1660 SUPER): 0 iterations, 17.422s init, 0.000s render

    2020-11-21 00:49:29.548 Iray [INFO] - IRAY:RENDER ::   1.0   IRAY   rend info : CPU: 3 iterations, 27.292s init, 83.365s render

     

    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).

    err.png
    846 x 1647 - 91K
  • 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.

     

Sign In or Register to comment.