Forum

Author Topic: Reverting to CPU during Blending Textures - ERROR_OUT_OF_DEVICE_MEMORY  (Read 346 times)

wizprod

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Dronographica
Hi,

I am facing a problem when Blending Textures during Tiled Model Creation.
I have 2 GPU's, one with 4gb of vram, and one with 16 gb.
Both GPU's are being used in earlier stages of the Tiled Model creation.

However, when Metashape reaches the Blending Textures stage, it reverts to CPU only, as the 4 gb GPU doesn't have enough ram(○~5 gb needed).

What I don't understand is why it just doesn't continue on the 16 gb GPU only?

Right now it takes ages, even on a i9-11900K with 128 gb RAM.

Code: [Select]
Found 3 GPUs in 0 sec (CUDA: 0 sec, OpenCL: 0 sec)
Using device: AMD Radeon (TM) R9 Fury Series (Fiji), 64 compute units, free memory: 4046/4096 MB, OpenCL 2.0
  driver version: 3276.6 (GSL), platform version: OpenCL 2.1 AMD-APP (3276.6)
  max work group size 256
  max work item sizes [1024, 1024, 1024]
  max mem alloc size 3264 MB
  wavefront width 64
Using device: AMD Radeon VII (gfx906), 60 compute units, free memory: 16304/16368 MB, OpenCL 2.0
  driver version: 3276.6 (PAL,HSAIL), platform version: OpenCL 2.1 AMD-APP (3276.6)
  max work group size 256
  max work item sizes [1024, 1024, 1024]
  max mem alloc size 13695 MB
  wavefront width 64
loaded selector in 0 sec
selected 807 cameras in 5.378 sec
selected 152 blocks in 0.053 sec
loaded model blocks in 0.246 sec
loaded uv blocks in 0.165 sec
initializing renderer... done in 0.208 sec
Blending textures...
All cameras are fine
Activating context...
calculating mesh connectivity... done in 0.88 sec
rendering 0 to 149 pages
Initialized texture renderer
Configuring pipeline...
Initialized memory broker
Configuring mosaic pipeline with outliers filtering
Constructed pipeline
Relaxed precision enabled
Collecting memory requests...
Allocating memory requests...
Estimated required video memory: 5570 MB
Estimated device memory: total 3840 MB, used 40 MB, available 3243 MB
Cannot use GPU. Reason: VK Error : VkResult is "ERROR_OUT_OF_DEVICE_MEMORY" at line 12
Performing blending on CPU...

wizprod

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
    • Dronographica
Re: Reverting to CPU during Blending Textures - ERROR_OUT_OF_DEVICE_MEMORY
« Reply #1 on: October 08, 2021, 08:03:20 AM »
Tried rerunning the blending, this time only with the 16 gb gpu selected in settings. now it run the blending fine on GPU, but the overall process is now measurably slower, as I am only using 1 GPU throughout.