Hi there,
I try to compile darknet to use yolo. I’m a beginner, but since I needed a new pc anyway, decided to buy a nVidia-card within it.
To compile darknet, I modified the Makefile to:
GPU=1
CUDNN=1
CUDNN_HALF=0
OPENCV=0
AVX=0
OPENMP=0
LIBSO=0
ZED_CAMERA=0
I installed cuda 10.0 (also tried out 10.1 - but that didn’t help) and the new nvidia driver:
nvcc -V gives me:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130
and nvidia-smi:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.01 Driver Version: 418.87.01 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| 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 RTX 208... On | 00000000:01:00.0 Off | N/A |
| 30% 29C P8 10W / 250W | 538MiB / 10989MiB | 3% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1282 G /usr/lib/xorg/Xorg 335MiB |
| 0 1524 G /usr/bin/gnome-shell 200MiB |
+-----------------------------------------------------------------------------+
I ran the examples, given in the instructions for cuDNN and cuda and they both worked. But I just can not compile darknet.
If I do, it says:
d -L/usr/local/cudnn/lib64 -lcudnn -lstdc++
/usr/bin/ld: -lcuda kann nicht gefunden werden
collect2: error: ld returned 1 exit status
Makefile:143: recipe for target 'darknet' failed
make: *** [darknet] Error 1
So, it can’t find -lcuda.
Does anyone have an idea? Thank upfront and regards!