pjreddie / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
25.73k stars 21.33k forks source link

Makefile:81: recipe for target 'libdarknet.so' failed #2605

Open varungupta31 opened 1 year ago

varungupta31 commented 1 year ago

Trying to make the darknet with the following Makefile with CUDA 10.2

GPU=1
CUDNN=1
OPENCV=1
OPENMP=1
DEBUG=0

As per the discussions here, I have updated the NVCC and the CUDA path under LDFLAGS, however running make gives the following error:

/usr/bin/ld: cannot find -lcudnn
collect2: error: ld returned 1 exit status
Makefile:81: recipe for target 'libdarknet.so' failed
make: *** [libdarknet.so] Error 1

Please help out, I have checked out other relevant discussions on similar error stacks, to no resolve.

weella commented 1 year ago

me too! Is that because we didn't install cudnn?

varungupta31 commented 1 year ago

So I'm on a compute cluster for which I'm not the admin. However, I did end up locating the CUDNN files and fixed up the path in the Makefile, the error remains unsolved. I'm yet to understand exactly the role CUDNN=1 flag plays in the Makefile when CUDA=1 is already set. I built (make) the darknet using CUDA=1 and CUDNN=0 and it did compile. Try that and see if the GPU's are engaged.