Effacer les filtres
Effacer les filtres

NCC problem in jetson nano

16 vues (au cours des 30 derniers jours)
Rushabh Nagda
Rushabh Nagda le 19 Fév 2020
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.

Réponses (1)

Ramakrishna Mandalapu
Ramakrishna Mandalapu le 25 Fév 2020
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 commentaires
Dishant Shah
Dishant Shah le 26 Fév 2020
Modifié(e) : Dishant Shah le 26 Fév 2020
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
Ramakrishna Mandalapu le 19 Juil 2021
Hi Dishant,
The non interactive session of the bashrc need to be updated with the required paths. An example bashrc is atached below.
Ramakrishna

Connectez-vous pour commenter.

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by