Forum

Author Topic: cudaGetDeviceCount failed: unknown error (30)  (Read 4284 times)

rexsham

  • Newbie
  • *
  • Posts: 31
    • View Profile
cudaGetDeviceCount failed: unknown error (30)
« on: July 15, 2019, 03:52:34 PM »
I am using Windows 10 with Radeon VII GPU
When I do Align Photos, I see a strange message:cudaGetDeviceCount failed: unknown error (30)
It is an AMD card, how come it will generate a cuda error? There is no nvidia card in the computer.

I have used nvidia cards on this computer with nvidia drivers installed, but Agisoft still should not pop this error as I have no cards in the computer now.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: cudaGetDeviceCount failed: unknown error (30)
« Reply #1 on: July 15, 2019, 04:34:39 PM »
Hello rexsham,

I can suggest to remove NVIDIA drivers, for example, via Display Driver Uninstaller utility.

However, if the message doesn't affect the processing and also doesn't annoy you much, you can leave it as is.
Best regards,
Alexey Pasumansky,
Agisoft LLC

rexsham

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: cudaGetDeviceCount failed: unknown error (30)
« Reply #2 on: July 15, 2019, 05:09:03 PM »
Hi Alexey,
I will remove the nvidia driver later and try again, now when I try to run Generate Dense Cloud, I see this error:
I do not know if it will affect the results or not. I let it continue and time to finish is 2 hours, let's see~

Initializing...
cudaGetDeviceCount failed: unknown error (30)
Using device: AMD Radeon VII (gfx906), 60 compute unitsWarning: CL_DEVICE_GLOBAL_FREE_MEMORY_AMD returned too big free memory! Data[8]=bc,60,fd,0,0,0,0,0 free_mem_size=16605372 global_mem_size=16580608
, free memory: 12953/16192 MB, OpenCL 2.0
  driver version: 2906.8 (PAL,HSAIL), platform version: OpenCL 2.1 AMD-APP (2906.8)
  max work group size 256
  max work item sizes [1024, 1024, 1024]
  max mem alloc size 4048 MB
  wavefront width 64
Using OpenCL device 'AMD Radeon VII (gfx906)' in concurrent. (2 times)
Loading photos...
loaded photos in 8.364 seconds
Generating depth maps...
Warning: CL_DEVICE_GLOBAL_FREE_MEMORY_AMD returned too big free memory! Data[8]=bc,60,fd,0,0,0,0,0 free_mem_size=16605372 global_mem_size=16580608
Loading kernels for AMD Radeon VII (gfx906)...

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: cudaGetDeviceCount failed: unknown error (30)
« Reply #3 on: July 15, 2019, 05:43:46 PM »
Hello rexsham,

The new warning (CL_DEVICE_GLOBAL_FREE_MEMORY_AMD) means that AMD driver has returned the amount of free VRAM larger than the total accessible memory, however, the processing should continue properly, but leaving some free amount just for case.
Best regards,
Alexey Pasumansky,
Agisoft LLC