Hello, I am currently trying to deploy some codes from MATLAB to Jetson Nano Developer Kit, I am using GPU Coder Application, however; I am encountering a very serious issue right here. I tried working with some basic codes firstly, addition or anything, It works perfectly because the matlab example has a main.cu file attached with it, which should be easy to use. Basically the main.cu is a code that allows me to enter the point function, now.
What I am actually going to deploy to JETSON in reality is
  • Camera Fusion with Lidar Function
How am I going to write that main.cu file now? Can someone help me that if any application takes the matlab function and generates the main.cu file?

 채택된 답변

Ram Kokku
Ram Kokku 2023년 11월 20일

0 개 추천

Hi Ahmed,
The NVIDIA hardware support package provides functionality for accessing various I/O devices, including cameras and Velodyne LiDAR. You can refer to the examples listed below to write MATLAB code for your I/O and generate code using GPU Coder.

댓글 수: 4

Ahmed Tamer
Ahmed Tamer 2023년 11월 20일
I will give them a try tommorow.
  • Can I run the generated excutable file on Jetson itself?
  • Is there an ability to generate an excutable code for a code I wrote myself? The issue here is that I would need to create a main.cu file for my own code, which I dont know how to, you get my issue?
Ram Kokku
Ram Kokku 2023년 11월 20일
Hi Ahmed,
Yes, you can run the generated executable on the Jetson. There are several ways to do this. You can manually copy the executable from the 'codegen' directory to the Jetson board and run it, or you can utilize the functionality of the NVIDIA Hardware Support Package to do so.
Regarding generating an executable, yes, you can also accomplish this by creating an executable code generation configuration using cfg = coder.gpuConfig('exe'). For more information, refer to the documentation - https://www.mathworks.com/help/gpucoder/ref/coder.gpucodeconfig.html
Ahmed Tamer
Ahmed Tamer 2023년 11월 20일
Yes I do get it, however my main issue still persists. I do need a main.cu code for each function that I generate an excutable for, look here at this step, I have got to have the main.cu file. For this example, myAdd function, the main.cu was attached to the example.
Now, for the own function of mine, how am I going to create a main.cu file so I can attach it?
Ahmed Tamer
Ahmed Tamer 2023년 11월 24일
I fixed it. Thanks

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with GPU Coder에 대해 자세히 알아보기

제품

릴리스

R2023a

질문:

2023년 11월 20일

댓글:

2023년 11월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by