因为CUDA Version: 11.0,所以装的cudnn为 v8.0.4,设置cuda=1,cudnn=1,然后编译,然后报错了,如下
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.
因为CUDA Version: 11.0,所以装的cudnn为 v8.0.4,设置cuda=1,cudnn=1,然后编译,然后报错了,如下
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.
网上有找原因,可能是cudnn版本过高导致,只能cudnnv3-v7版本,但是对应cuda11.0的cudnn只有v8版本的
然后同样的配置编译AlexeyAB/darknet的版本能够通过,但我想做mobilenet版本的yolo