Hello All,
I am using ZED2 camera and trying to compile darknet with ZED CPP YOLO sample from zed-yolo/zed_cpp_sample at legacy · stereolabs/zed-yolo · GitHub
but when I try to make -j8 or make -j4 I get the error as :
./src/convolutional_layer.c: In function ‘cudnn_convolutional_setup’:
./src/convolutional_layer.c:192:24: error: ‘CUDNN_CONVOLUTION_FWD_PREFER_FASTEST ’ undeclared (first use in this function); did you mean ‘CUDNN_CONVOLUTION_BWD_F ILTER_ALGO_3’?
int forward_algo = CUDNN_CONVOLUTION_FWD_PREFER_FASTEST;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3
compilation terminated due to -Wfatal-errors.
Makefile:136: recipe for target ‘obj/convolutional_layer.o’ failed
make: *** [obj/convolutional_layer.o] Error 1
make: *** Waiting for unfinished jobs…
In order to resolve this I followed the steps mentioned in the post
Darknet compile error with cudnn 8 - #11 by jacky103120038rqj6.
But I fail to apply the opencv4 patch . I placed the opencv4 patch in the root directory of darknet and used command " sudo patch -d/ -p0 <opencv4patch.patch" to apply the patch. But it ends with the error as :
can’t find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff --git a/Makefile b/Makefile
|index 63e15e6…9a7471d 100644
|— a/Makefile
+++ b/Makefile |
---|
File to patch: |
I don’t know what the reason behind this failure and how should I resolve the error. Please suggest how to proceed further.
Thanks in advance !
Regards,
Anjali