필터 지우기
필터 지우기

SDL error with NVIDIA Jetson & GPU Coder

조회 수: 23 (최근 30일)
Hermann Müller
Hermann Müller 2019년 10월 16일
댓글: Paolo Rosettani 2022년 9월 26일
I am trying to use MATLAB (R2019b), GPU Coder and GPU Coder Support Package for NVIDIA GPUs to compile MATLAB code and run it on the NVIDIA Jetson AGX Xavier (Jetson OS).
I can create a working connection to the Jetson Hardware, all libraries are installed and being detected:
Checking for CUDA availability on the Target...
Checking for 'nvcc' in the target system path...
Checking for cuDNN library availability on the Target...
Checking for TensorRT library availability on the Target...
Checking for prerequisite libraries is complete.
Gathering hardware details...
Gathering hardware details is complete.
Board name : NVIDIA Jetson AGX Xavier
CUDA Version : 10.0
cuDNN Version : 7.5
TensorRT Version : 5.1
Available Webcams : USB 2.0 Camera
Available GPUs : Xavier
This example here works fine (adding two numbers on the Jetson GPU and comparing them with MATLAB results): https://de.mathworks.com/help/supportpkg/nvidia/ug/build-run-on-nvidia-hardware.html
Connection, compilation and deployment on the jetson works fine.
The Jetson shows different behaviors:
  • On the first run after boot, the Ubuntu Desktop disappears and shows some sort of "boot output" (See screenshot ).
  • All subsequent runs without reboot don't produce the screen.
In both cases, there is an error message in the log file generated on the Jetson:
No protocol specified
No protocol specified
Unable to init SDL: Unable to open a console terminal
No protocol specified
No protocol specified
Unable to set video mode: Unable to open a console terminal
SDL was not preinstalled on the jetson, I manually installed it. SDL Version is (using sdl-config --version) 1.2.15
Any suggestions what the problem could be?
Thanks in advance
  댓글 수: 1
Benjamin Seeger
Benjamin Seeger 2019년 10월 16일
I have the same problem... Does anyone have an answer ?

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

채택된 답변

Ramakrishna Mandalapu
Ramakrishna Mandalapu 2019년 10월 17일
Hi Hermann,
I am assuming that you are having Jetpack version > 3.3 on the target board.This issue is regarding the change of the display environment value on the target board for Jetpack version > 3.3. For this version of Jetpack, before running the application on the target board, you should set the display environment in MATLAB using hwobj.setDisplayEnvironment('value') (hwobj is the object of jetson or drive class). This setting is available from R2019a version of MATLAB, as you are using R2019b MATLAB, you will have this.
To obtain the display environment value, please log in to the target board and run the below command.
$ echo $DISPLAY
expected output: "0.0" for Jetpack <= 3.3 and "1.0" for Jetpack > 3.3.
Create a hardware object for the target board.
hwobj = jetson('ip address','user name','password');
Set the target display environment in MATLAB using
hwobj.setDisplayEnvironment('1.0')
Run the application on target board using
hwobj.runApplication('function name').
You will be able to see the display window on target monitor.
Cheers.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by