AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.76k stars 7.96k forks source link

win10 cuda 9.1 opencv 3.4.3 vs2015 compile error #7909

Open shankslee2021 opened 3 years ago

shankslee2021 commented 3 years ago

win10 cuda 9.1 opencv 3.4.3 vs2015

makefile :

GPU=1 CUDNN=1 CUDNN_HALF=0 OPENCV=1

When I compile, I get the following error

1>D:/code/python/darknet/darknet/src/network_kernels.cu(709): error : identifier "cudaGraphExec_t" is undefined 1>D:/code/python/darknet/darknet/src/network_kernels.cu(712): error : identifier "cudaGraph_t" is undefined 1>D:/code/python/darknet/darknet/src/network_kernels.cu(721): error : identifier "cudaStreamCaptureModeGlobal" is undefined 1>D:/code/python/darknet/darknet/src/network_kernels.cu(721): error : identifier "cudaStreamBeginCapture" is undefined 1>D:/code/python/darknet/darknet/src/network_kernels.cu(729): error : identifier "cudaStreamEndCapture" is undefined 1>D:/code/python/darknet/darknet/src/network_kernels.cu(730): error : identifier "cudaGraphInstantiate" is undefined 1>D:/code/python/darknet/darknet/src/network_kernels.cu(740): error : identifier "cudaGraphLaunch" is undefined 1> network_kernels.cu 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\CUDA 9.1.targets(707,9): error MSB3721: 命令“"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin\nvcc.exe" -gencode=arch=compute_35,code=\"sm_35,compute_35\" --use-local-env --cl-version 2015 -ccbin "D:\windows\soft\vs2015\VC\bin\x86_amd64" -x cu -I\include -IC:\opencv_3.0\opencv\build\include -I....\include -I....\3rdparty\stb\include -I....\3rdparty\pthreads\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include" -I\include -I\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include" --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -DOPENCV -DCUDNN_HALF -DCUDNN -D_TIMESPEC_DEFINED -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_CRT_RAND_S -DGPU -DWIN32 -D_CONSOLE -D_LIB -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /FS /Zi /MD " -o x64\Release\network_kernels.cu.obj "D:\code\python\darknet\darknet\src\network_kernels.cu"”

Request help

stephanecharette commented 3 years ago

Take a look at the prerequisites listed in the readme, or search this repo for the errors you are having. This is a very simple problem.