Forum

Author Topic: Not enough video memory  (Read 5045 times)

tjsckddhks

  • Newbie
  • *
  • Posts: 8
    • View Profile
Not enough video memory
« on: July 08, 2024, 01:45:06 PM »
Hi, Agisoft developers,

I met this issue: Not enough video memory.
The logs are below.
Please fix this issue!!

2024-07-08 19:41:07 Agisoft Metashape Professional Version: 2.1.2 build 18358 (64 bit)
2024-07-08 19:41:07 Platform: Windows
2024-07-08 19:41:07 CPU: Intel(R) Core(TM) i7-5930K CPU @ 3.50GHz (desktop)
2024-07-08 19:41:07 CPU family: 6 model: 63 signature: 306F2h
2024-07-08 19:41:07 RAM: 31.9 GB
2024-07-08 19:41:08 OpenGL Vendor: NVIDIA Corporation
2024-07-08 19:41:08 OpenGL Renderer: NVIDIA GeForce GTX 660/PCIe/SSE2
2024-07-08 19:41:08 OpenGL Version: 4.6.0 NVIDIA 474.44
2024-07-08 19:41:08 Maximum Texture Size: 16384
2024-07-08 19:41:08 Quad Buffered Stereo: not enabled
2024-07-08 19:41:08 ARB_vertex_buffer_object: supported
2024-07-08 19:41:08 ARB_texture_non_power_of_two: supported
2024-07-08 19:41:11 LoadProject: path = E:/Research_materials/Candidates/Vintage_DSM/2024Miho/2024MIHO_Vintage_DSM_1.psx
2024-07-08 19:41:11 loaded project in 0.003 sec
2024-07-08 19:41:12 Finished processing in 0.003 sec (exit code 1)
2024-07-08 19:41:18 AlignPhotos: downscale = 2, generic_preselection = on, reference_preselection = off, filter_mask = off, mask_tiepoints = off, filter_stationary_points = on, keypoint_limit = 40000, keypoint_limit_per_mpx = 1000, tiepoint_limit = 4000, guided_matching = off, exclude_corners = off, adaptive_fitting = on
2024-07-08 19:41:18 Matching photos...
2024-07-08 19:41:18 saved matching data in 0.006 sec
2024-07-08 19:41:18 scheduled 1 keypoint detection groups
2024-07-08 19:41:18 saved keypoint partition in 0.007 sec
2024-07-08 19:41:18 groups: 3
2024-07-08 19:41:18 3 of 3 used (100%)
2024-07-08 19:41:18 scheduled 1 keypoint matching groups
2024-07-08 19:41:18 saved matching partition in 0.004 sec
2024-07-08 19:41:18 loaded keypoint partition in 0 sec
2024-07-08 19:41:18 loaded matching data in 0 sec
2024-07-08 19:41:18 Detecting points...
2024-07-08 19:41:18 Found 1 GPUs in 0.044 sec (CUDA: 0.021 sec, OpenCL: 0.023 sec)
2024-07-08 19:41:18 Using device: NVIDIA GeForce GTX 660, 5 compute units, free memory: 1498/2048 MB, compute capability 3.0
2024-07-08 19:41:18   driver/runtime CUDA: 11040/10010
2024-07-08 19:41:18   max work group size 1024
2024-07-08 19:41:18   max work item sizes [1024, 1024, 64]
2024-07-08 19:41:19 [GPU] processing 16143x16143 image using 16143x8072 tiles
2024-07-08 19:41:20 Warning: cudaMemcpy(cuptr(), data, size, cudaMemcpyHostToDevice): out of memory (2) at line 244(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Error: cudaFree(data_): out of memory (2) at line 113(free memory unknown: out of memory (2))
2024-07-08 19:41:20 Warning: cudaStreamDestroy failed: out of memory (2)
2024-07-08 19:41:20 Finished processing in 2.581 sec (exit code 0)
2024-07-08 19:41:20 Error: cudaMemGetInfo(&free_mem_size, &total_mem_size): out of memory (2) at line 286(free memory unknown: out of memory (2))

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15438
    • View Profile
Re: Not enough video memory
« Reply #1 on: July 08, 2024, 04:58:50 PM »
Hello tjsckddhks,

What OS version you are using and whether you have the latest NVIDIA driver installed?

If it is the latest driver version, you may try to create main/gpu_enable_cuda tweak and set its value to False in order to check, whether OpenCL implementation works on that old GPU.
Best regards,
Alexey Pasumansky,
Agisoft LLC

tjsckddhks

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Not enough video memory
« Reply #2 on: July 09, 2024, 07:39:00 AM »

OS: Windows 11 Pro
NVIDIA : GeForce GTX 660
NVIDIA Driver : 30.0.14.7444

After rebooting my coumter, It worked!
Thank you for your quick reply:)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15438
    • View Profile
Re: Not enough video memory
« Reply #3 on: July 10, 2024, 06:25:03 PM »
Hello tjsckddhks,

You may also consider installing more recent driver for your system:
https://www.nvidia.com/download/driverResults.aspx/228836/en-us/

but GPU is quite old and not so powerful.
Best regards,
Alexey Pasumansky,
Agisoft LLC