NCC problem in jetson nano

16 次查看(过去 30 天)
Rushabh Nagda
Rushabh Nagda 2020-2-19
Hello
I have been trying to generate a cuda optimised code for jetson nano using matlab.
But I am having a major problem. The NVCC is shown as missing. The nano is also shown as a TX1 for some reason.
Checking for CUDA availability on the Target...
Checking for 'nvcc' in the target system path...
Warning: Unable to find 'nvcc' on the system path. Update the '.bashrc' script on the target to set up the required
environment variables.
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 TX1
CUDA Version :
cuDNN Version : 7.6
TensorRT Version : 6.0
Available Webcams :
Available GPUs :
However, when I checked the command line of the jetson, I received the following -
shane@jetsonnano:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Mon_Mar_11_22:13:24_CDT_2019
Cuda compilation tools, release 10.0, V10.0.326
Which clearly shows that NVIC is installed and that too in the correct place.
When I try to use the same command via the MATLAB interface in the Jetson nano shell using the openShell(obj) command, it shows that the NVIC is missing and the command is not defined.
Please help, I am getting a bit confused. I tried changing the bashrc file, and added the path variables etc, but to no avail.

回答(1 个)

Ramakrishna Mandalapu
Hello Rushabh,
Did you set the ~/.bashrc as mentioned in the documentation?
You have to update the environment variables in the non-interactive portion of the ~/.bashrc as mentioned in the example bashrc file in the documentation.
Ramakrishna
  2 个评论
Dishant Shah
Dishant Shah 2020-2-26
编辑:Dishant Shah 2020-2-26
I am having the same issue - i changed the bashrc file and that solved the problem on the jetson nano shell opened via matlab but while generating cuda code it still shows that nvcc is not found. A similar problem is mentioned here - https://in.mathworks.com/matlabcentral/answers/394142-use-cuda-and-cudnn-with-matlab
It still seems to be unresolved. There is some bug associated with setenv
Ramakrishna Mandalapu
Hi Dishant,
The non interactive session of the bashrc need to be updated with the required paths. An example bashrc is atached below.
Ramakrishna

请先登录,再进行评论。

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by