Error executing command "touch -c /home/jets​on/remoteB​uildDir/MA​TLAB_ws/R2​019b/C/Use​rs/JSH/Doc​uments/MAT​LAB/codege​n/exe/MyNe​tJetson/*.​*;make -f MyNetJetson_rtw.mk all MATLAB_

1 次查看(过去 30 天)
hi guys I have big problem, The codegen task to transfer from Matlab to jetson nano does not work with the error below. Can you solve this problem?
Error executing command "touch -c /home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/codegen/exe/MyNetJetson/*.*;make -f MyNetJetson_rtw.mk all MATLAB_WORKSPACE="/home/jetson/remoteBuildDir/MATLAB_ws/R2019b" -C /home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/codegen/exe/MyNetJetson". Details:
STDERR: /home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/codegen/exe/MyNetJetson/MyNetJetson.cu: In function 쁵oid MyNetJetson():
/home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/codegen/exe/MyNetJetson/MyNetJetson.cu:672:10: warning: format not a string literal and no format arguments [-Wformat-security]
printf(cv);
^
/usr/bin/ld: skipping incompatible /usr/local/cuda/bin/../targets/aarch64-linux/lib/libcudnn.so when searching for -lcudnn
MWFusedConvReLULayerImpl.o: In function `MWFusedConvReLULayerImpl::getConvAlgoNoWorkSpace()':
tmpxft_00003e0d_00000000-5_MWFusedConvReLULayerImpl.cudafe1.cpp:(.text+0xbfc): undefined reference to `cudnnGetConvolutionForwardAlgorithm'
collect2: error: ld returned 1 exit status
make: *** [/home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/MyNetJetson.elf] Error 1
nvcc -lm -lrt -ldl -Xlinker -rpath,/usr/lib32 -Xnvlink -w -lcudart -lcuda -Wno-deprecated-gpu-targets -lcudnn -lcublas -arch sm_35 -lSDL -lcufft -lcublas -o /home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/MyNetJetson.elf MWDepthConcatenationLayer.o MWElementwiseAffineLayer.o MWFusedConvReLULayer.o MWSplittingLayer.o cnn_api.o MWCNNLayerImpl.o MWDepthConcatenationLayerImpl.o MWElementwiseAffineLayerImpl.o MWElementwiseAffineLayerImplKernel.o MWFusedConvReLULayerImpl.o MWSplittingLayerImpl.o MWTargetNetworkImpl.o rt_nonfinite.o rtGetNaN.o rtGetInf.o v4l2_cam.o availableWebcam.o MW_SDL_video_display.o MyNetJetson_rtwutil.o MyNetJetson_data.o MyNetJetson_initialize.o MyNetJetson_terminate.o MyNetJetson.o DeepLearningNetwork.o predict.o fileManager.o main.o MWCudaDimUtility.o -lm -lm
MyNetJetson_rtw.mk:320: recipe for target '/home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/MyNetJetson.elf' failed
make: Leaving directory '/home/jetson/remoteBuildDir/MATLAB_ws/R2019b/C/Users/JSH/Documents/MATLAB/codegen/exe/MyNetJetson'
------------------------------------------------------------------------
??? Build error: C++ compiler produced errors. See the Build Log for further details.
More information
Code generation failed: View Error Report
  2 个评论
Ramakrishna Mandalapu
Hi Se Hwan,
This can be an issue with the DL library mismatch on the target which means that the generated code expects a cuDNN version but the target has a different version. To understand the problem cleary, we need the software details on this board.
Can you provide the software details of this board, majorly Jetpack, CUDA, cuDNN and TensorRT versions.
Thanks,
Ramakrishna
Se Hwan Lee
Se Hwan Lee 2023-6-7
编辑:Se Hwan Lee 2023-6-7
Thank you for your answer!
This is Jetson nano board software. Do you need windows Desktop software detail too?

请先登录,再进行评论。

回答(1 个)

R
R 2024-2-2
编辑:R 2024-2-2
Hello,
From the ouput log, I understand that you are using MATLAB R2019b and cuDNN version 8.0. The error "undefined reference to `cudnnGetConvolutionForwardAlgorithm'" occurs because the "cudnnGetConvolutionForwardAlgorithm" API is deprecated in cuDNN version 8.0. Please refer to the table in the link below, which details the API functions and data types removed in cuDNN 8.0.0:
Further, MATLAB R2019b has been tested on cudNN version 7.0. I recommend you either upgrade MATLAB or downgrade the cudNN version to resolve this issue. Support for cudNN version 8.0 is provided from MATLAB R2021a onwards.
Here are the install prerequisites of MATLAB R2021a for your reference:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by