Open ghost opened 3 years ago
I get the following error when I try to make
gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda-10.2/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU -DCUDNN -c ./src/gemm.c -o obj/gemm.o ./src/gemm.c: In function ‘time_gpu’: ./src/gemm.c:232:9: warning: ‘cudaThreadSynchronize’ is deprecated [-Wdeprecated-declarations] cudaThreadSynchronize(); ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/cuda-10.2/include/cuda_runtime.h:96:0, from include/darknet.h:11, from ./src/utils.h:5, from ./src/gemm.c:2: /usr/local/cuda-10.2/include/cuda_runtime_api.h:957:57: note: declared here extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadSynchronize(void); ^~~~~~~~~~~~~~~~~~~~~ gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda-10.2/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU -DCUDNN -c ./src/utils.c -o obj/utils.o gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda-10.2/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU -DCUDNN -c ./src/cuda.c -o obj/cuda.o gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda-10.2/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU -DCUDNN -c ./src/deconvolutional_layer.c -o obj/deconvolutional_layer.o gcc -Iinclude/ -Isrc/ -DGPU -I/usr/local/cuda-10.2/include/ -DCUDNN -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DGPU -DCUDNN -c ./src/convolutional_layer.c -o obj/convolutional_layer.o ./src/convolutional_layer.c: In function ‘cudnn_convolutional_setup’: ./src/convolutional_layer.c:148:5: warning: implicit declaration of function ‘cudnnGetConvolutionForwardAlgorithm’; did you mean ‘cudnnGetConvolutionForwardAlgorithm_v7’? [-Wimplicit-function-declaration] cudnnGetConvolutionForwardAlgorithm(cudnn_handle(), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cudnnGetConvolutionForwardAlgorithm_v7 ./src/convolutional_layer.c:153:13: error: ‘CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT’ undeclared (first use in this function); did you mean ‘CUDNN_CONVOLUTION_FWD_ALGO_DIRECT’? CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CUDNN_CONVOLUTION_FWD_ALGO_DIRECT compilation terminated due to -Wfatal-errors. make: *** [Makefile:89: obj/convolutional_layer.o] Error 1
That https://github.com/pjreddie/darknet/issues/1141 or just try to comment line and recompile.
https://github.com/pjreddie/darknet/issues/2257#issuecomment-1005476947
this maybe work for u. just try.
I get the following error when I try to make