Darknet: do not support cuda 8.0?

Created on 17 Nov 2017  ·  4Comments  ·  Source: pjreddie/darknet

compile the code under the env of cuda 8.0 and cudnn 6.0, while get the link error: "/usr/bin/ld: cannot find -lcuda". The path of cuda 8.0 had already been list on the Makefile. The same Makefile can work under the env of cuda 7.5 and cudnn 5.1.

my os: centos 7
compile switch:
GPU=1
CUDNN=1
OPENCV=0
OPENMP=0
DEBUG=0

image

Most helpful comment

this error is because we are using the libcuda.so in wrong path. I fixed it by using such command: "ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/libcuda.so".

All 4 comments

I only use cuda 8.0, maybe you must chance the path in the Makefile. If it is only "cuda" in something like "/usr/local/cuda/", try to change to "cuda-8.0"

thank you @LiraNeto . I have tried to write the path as "/usr/local/cuda-8.0/lib64/" (as you can see the gcc command on the attached image), however, it's still not work. crying T_T....

I meet seem question. cuda8 , not found lcuda

this error is because we are using the libcuda.so in wrong path. I fixed it by using such command: "ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/libcuda.so".

Was this page helpful?
0 / 5 - 0 ratings