필터 지우기
필터 지우기

GPU coder error with Nivida Jetson device

조회 수: 4 (최근 30일)
Liwei
Liwei 2024년 7월 8일
편집: Chao Luo 2024년 7월 8일
I am using the Matlab 2023b, I have no issue to compile the InceptionV3 classification to the Nvidia Jetson orin 32 GB. Now I got NVIDIA JETSON ORIN 64 BIT, I compiled the executable using GPU coder. I got issue. I upgraded matlab to 2024b, I have the same issue.
i am using the following codes
opencv_linkflags = '`pkg-config --cflags --libs opencv4`';
coder.updateBuildInfo('addLinkFlags',opencv_linkflags);
coder.updateBuildInfo('addIncludePaths', '/usr/include/opencv4/'); %both remove or add this line, the GPU coder compilation process does not work.
fatal error: opencv2/imgproc/imgproc.hpp: No such file or directory
57 | #include <opencv2/imgproc/imgproc.hpp>
Any idea to help solve the issue?

채택된 답변

Chao Luo
Chao Luo 2024년 7월 8일
편집: Chao Luo 2024년 7월 8일
Seems a bug here that the include path is considered as relative path based on the MATLAB_WORKSPACE on the Jetson board.
One workaroud is using addCompileFlags instead:
coder.updateBuildInfo("addCompileFlags", '-I /usr/include/opencv4');
  댓글 수: 1
Liwei
Liwei 2024년 7월 8일
편집: Liwei 2024년 7월 8일
Thanks. The alternative solution you provided works.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by