Difference between revisions of "Installing CUDA-toolkit and VisionWorks Jetson TX2/Xavier/Nano"

From RidgeRun Developer Connection
Jump to: navigation, search
m
 
Line 22: Line 22:
 
== Installing CUDA ==  
 
== Installing CUDA ==  
 
Before starting to install cuda please cp the '''cuda-repo*.deb''' file located in the Jetpack downloads directory to the Jetson TX2/Xavier/Nano. Make sure to run the next commands on the Jetson TX2/Xavier/Nano.  
 
Before starting to install cuda please cp the '''cuda-repo*.deb''' file located in the Jetpack downloads directory to the Jetson TX2/Xavier/Nano. Make sure to run the next commands on the Jetson TX2/Xavier/Nano.  
<pre>
+
<syntaxhighlight lang=bash>
 
sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
 
sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
 
sudo apt-get update
 
sudo apt-get update
sudo apt-key add /var/cuda-repo-10-0-local-10.0.166/7fa2af80.pub
+
sudo apt-key add /var/cuda-repo-l4t-<cuda_version>-local/7fa2af80.pub  
 
sudo apt-get install cuda-toolkit-<cuda_version>
 
sudo apt-get install cuda-toolkit-<cuda_version>
  
Line 33: Line 33:
 
source ~/.bashrc
 
source ~/.bashrc
  
 +
# In order to test run:
 
cd /usr/local/cuda/samples/1_Utilities/deviceQuery/
 
cd /usr/local/cuda/samples/1_Utilities/deviceQuery/
 
sudo make
 
sudo make
  
</pre>
+
</syntaxhighlight>
  
 
== Installing VisionWorks ==
 
== Installing VisionWorks ==

Latest revision as of 15:41, 8 February 2023

Nvidia-preferred-partner-badge-rgb-for-screen.png

RR Contact Us.png

Introduction

In this wiki you will find the steps required to install Cuda-toolkit and VisionWorks in the Jetson TX2/Xavier/Nano, sometimes we do not want to install the complete JetPack installation and we reduce it removing some third-party packages. If you want to add Cuda and VisionWorks after flashing the Jetson TX2/Xavier/Nano this is a good option to install them.

Installing dependencies

In order to avoid issues installing Cuda-toolkit, please install the next packages in the Jetson TX2/Xavier/Nano:

sudo apt install libtbb2 libtbb-dev

Installing CUDA

Before starting to install cuda please cp the cuda-repo*.deb file located in the Jetpack downloads directory to the Jetson TX2/Xavier/Nano. Make sure to run the next commands on the Jetson TX2/Xavier/Nano.

sudo dpkg -i cuda-repo-<distro>_<version>_<architecture>.deb
sudo apt-get update
sudo apt-key add /var/cuda-repo-l4t-<cuda_version>-local/7fa2af80.pub 
sudo apt-get install cuda-toolkit-<cuda_version>

echo "# Add 32-bit CUDA library & binary paths:" >> ~/.bashrc
echo "export PATH=/usr/local/cuda-<cuda_version>/bin:$PATH" >> ~/.bashrc
echo "export LD_LIBRARY_PATH=/usr/local/cuda-<cuda_version>/lib:$LD_LIBRARY_PATH" >> ~/.bashrc
source ~/.bashrc

# In order to test run:
cd /usr/local/cuda/samples/1_Utilities/deviceQuery/
sudo make

Installing VisionWorks

Before starting to install Cuda-toolkit please copy the libvisionworks-repo*.deb file located in the Jetpack downloads directory to the Jetson TX2/Xavier/Nano. Make sure to run the next commands on the Jetson TX2/Xavier/Nano.

sudo add-apt-repository universe;
sudo dpkg -i libvisionworks-repo_<visworks_ver>_<architecture>.deb
sudo apt-get update
sudo apt-get install libvisionworks libvisionworks-dev libvisionworks-samples

Compile Vision Works examples

cd /usr/share/visionworks/sources
./install-samples.sh ~/
cd ~/VisionWorks-1.6-Samples/
make


RidgeRun Resources

Quick Start Client Engagement Process RidgeRun Blog Homepage
Technical and Sales Support RidgeRun Online Store RidgeRun Videos Contact Us

OOjs UI icon message-progressive.svg Contact Us

Visit our Main Website for the RidgeRun Products and Online Store. RidgeRun Engineering informations are available in RidgeRun Professional Services, RidgeRun Subscription Model and Client Engagement Process wiki pages. Please email to support@ridgerun.com for technical questions and contactus@ridgerun.com for other queries. Contact details for sponsoring the RidgeRun GStreamer projects are available in Sponsor Projects page. Ridgerun-logo.svg
RR Contact Us.png