Darknet YOLO issue with JetPack 4.4.1 and L4T 32.4.4

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

Hi,

The error is related to cuDNN so maybe the OpenCV patch won’t help.

Would you mind checking with the source own to see if they support cuDNN v8.0?
If not, you may need to install older JetPack to get cuDNN 7.x package.

Thanks.

Hello,

Thanks for the response. Can you please suggest the cpp sample with darknet which can work on cuDNN v8.0.

Thanks

Hi,

You can find some information in the below topic:

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.