Difference between revisions of "Installing CUDA-toolkit and VisionWorks Jetson TX2/Xavier/Nano"
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. | ||
− | < | + | <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- | + | 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 | ||
− | </ | + | </syntaxhighlight> |
== Installing VisionWorks == | == Installing VisionWorks == |
Latest revision as of 15:41, 8 February 2023
|
|
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contact Us
|