OpenDroneMap / ODM

A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images. 📷
https://opendronemap.org
GNU Affero General Public License v3.0
4.91k stars 1.11k forks source link

Cannot initialize CUDA even if nvidia-smi detected #1813

Open fri-K opened 1 week ago

fri-K commented 1 week ago

CUDA can't be properly initialized if cuda-compat on host and docker mismatches. Removing cuda-compat-11-2 package fixes the issue

Issue discussion: https://community.opendronemap.org/t/opendronemap-nodeodm-gpu-nvidia-smi-detected-cannot-initialize-cuda/21124 log:

[INFO] nvidia-smi detected
[INFO] Using CPU for feature extraction: Cannot initialize CUDA
pierotofy commented 1 week ago

Thanks for the PR. Is this going to break for people using 11.2?

fri-K commented 1 week ago

Thanks for the PR. Is this going to break for people using 11.2?

Hi, I hope not, but I tested it with 12.2, 12.4 and 12.6. I think I can test it with 11.2 in some days if you need me to?

pierotofy commented 1 week ago

Pinging @ehallein to see what testing should be done here.

ehallein commented 1 week ago

Yep, will need to be tested on 11.2 if we want have that as the minimum requirement. What host operating system has this been tested on?

fri-K commented 1 week ago

I tested on Ubuntu 22.04 and 24.04. I don't know what OS was cjgars using for his test

ehallein commented 1 week ago

I tested on Ubuntu 22.04 and 24.04. I don't know what OS was cjgars using for his test

Probably just needs to be tested on windows. If the GPU container is building I can test it, but won't be able to for a week as away.