darknet-ocr icon indicating copy to clipboard operation
darknet-ocr copied to clipboard

make gpu 报错

Open xiaotanlong opened this issue 4 years ago • 4 comments

编译 报错 ,哪位大佬帮忙看看;ubuntu+python3环境 cd darknet && cp Makefile-GPU Makefile && make mkdir -p obj mkdir -p backup mkdir -p results gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.o In file included from ./src/utils.h:5:0, from ./src/gemm.c:2: include/darknet.h:11:14: fatal error: cuda_runtime.h: No such file or directory #include "cuda_runtime.h" ^~~~~~~~~~~~~~~~ compilation terminated. Makefile:89: recipe for target 'obj/gemm.o' failed make: *** [obj/gemm.o] Error 1

xiaotanlong avatar Feb 10 '20 09:02 xiaotanlong

安装cuda了嘛?

wendal avatar Feb 10 '20 12:02 wendal

我也没搞起来。估计应该是虚机不行,物理机上安装cuda和显卡驱动,估计才可以

bhyself avatar Mar 30 '20 06:03 bhyself

虚拟机哪来的cuda

wendal avatar Mar 31 '20 10:03 wendal

虚拟机哪来的cuda

我是在 docker容器中 安装的有cuda

xiaotanlong avatar Mar 31 '20 10:03 xiaotanlong