chineseocr / darknet-ocr

darknet text detect and darknet cnn ocr
MIT License
1.14k stars 287 forks source link

make gpu 报错 #58

Open xiaotanlong opened 4 years ago

xiaotanlong commented 4 years ago

编译 报错 ,哪位大佬帮忙看看;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

wendal commented 4 years ago

安装cuda了嘛?

bhyself commented 4 years ago

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

wendal commented 4 years ago

虚拟机哪来的cuda

xiaotanlong commented 4 years ago

虚拟机哪来的cuda

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