./src/convolutional_layer.c: In function ‘cudnn_convolutional_setup’:
./src/convolutional_layer.c:286:24: error: ‘CUDNN_CONVOLUTION_FWD_PREFER_FASTEST’ undeclared (first use in this function); did you mean ‘CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3’?
int forward_algo = CUDNN_CONVOLUTION_FWD_PREFER_FASTEST;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3
compilation terminated due to -Wfatal-errors.
Makefile:164: recipe for target ‘obj/convolutional_layer.o’ failed
make: *** [obj/convolutional_layer.o] Error 1
jetsonnano@jetson:~/darknet$ git am 0001-fix-for-cudnn_v8.patch
fatal: previous rebase directory .git/rebase-apply still exists but mbox given.
jetsonnano@jetson:~/darknet$ git apply 0001-fix-for-cudnn_v8.patch
error: patch failed: src/convolutional_layer.c:145
error: src/convolutional_layer.c: patch does not apply
jetsonnano@jetson:~/darknet$
It looks like there is other patch applied in your source.
fatal: previous rebase directory .git/rebase-apply still exists but mbox given
The patch can be used on the top of official darknet source.
By the way, please noticed that there is a updated version to limited the memory usage for Jetson device.
$ git am 0001-fix-for-cudnn_v8-limited-memory-to-default-darknet-s.patch