Problem with CUDA and OpenCV

Support for the docker image maintained by dlandon
Post Reply
Posts: 3
Joined: Sat Mar 21, 2020 4:26 pm

Problem with CUDA and OpenCV

Post by xeryax » Sat Mar 21, 2020 7:43 pm

So, i am having some trouble with trying to use CUDA/HWacceleration for events...
I've downloaded the latest CUDA, staged the .deb packages in the opencv foler, and run numerous times

I think detection is still running on my CPU, as it is dog slow, and while it isnt the best test in the world, i keep running nvidia-smi to see if any processes are using the GPU, and nothing ever does when events fire...

when i run nvidia-smi on the container before running, i get the following output (note cuda version:

Code: Select all

Sat Mar 21 15:37:39 2020
| NVIDIA-SMI 440.59       Driver Version: 440.59       CUDA Version: 10.2     |
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|   0  GeForce GTX 105...  Off  | 00000000:82:00.0 Off |                  N/A |
| 40%   31C    P0    N/A /  75W |      0MiB /  4040MiB |      0%      Default |

| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|  No running processes found                                                 |
When i run it after i run the i get the same thing EXCEPT that "CUDA Version: N/A"

What step of the instructions am i clearly missing? I ask it that way because im almost 100% positive i had this working before, but cant get it there now.

also, a few side notes on the container, i can put these elsewhere if you want...

would be awesome if you got rid of these options in apache2/sites-enabled/default-ssl.conf, it causes a prompt for cert every time i open a new browser.
SSLVerifyClient optional_no_ca
SSLVerifyDepth 10

and several folders in /config default to needing chmod +x on them -- no biggie unless you are like me and doing samba sharing for docker management.

Thanks for this container, you've done a lot of good work, and I am very grateful.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest