Hi ,
i have upgrade my cuda from 11,4 to 12.2 using the following steps:
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/arm64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt-get update
sudo apt-get -y install cuda
sudo gedit ~/.bashrc
export PATH=/usr/local/cuda-12.2/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-12.2/${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
source ~/.bashrc
after that i am ablr=e to clone the pytorch using the following steps:
cd pytorch
pip install -U -r requirements.txt
pip install -U scikit-build
pip install -U ninja
sudo apt remove cmake -y
pip install cmake --upgrade
export TORCH_CUDA_ARCH_LIST="8.7"
python setup.py bdist_wheel
but when i am trying to clone torchvision
git clone --branch v0.16.1 https://github.com/pytorch/vision torchvision # see below for version of torchvision to download
cd torchvision
export BUILD_VERSION=0.16.1 # where 0.x.0 is the torchvision version
export TORCH_CUDA_ARCH_LIST="8.7"
python setup.py bdist_wheel
i am getting error that no module named torch .
What machine is it? Jetson? (since i saw arm64, I am assuming it is unless I am wrong)
If it is Jetson, do not upgrade your CUDA version that way or in any way.
It is not supposed to be upgraded.
i have upgraded it from 11.4 to 12.2 nd i am able to install pytorch also but dnt know whether it is cuda version or not and also my system got slow after that could you please suggest me something
@sidhu.rana34 Hi
I believe this link will help you.
For any kind of installation on jetson, you will probably find an answer in this nvidia developer forum.
This link shows Pytorch v2.1.0:
for jetpack 5.1, 5.1.1 and 5.1.2
That came out of nowhere but you’ll find tons of guides and tutorials and github links related to yolov7 or any yolo version on a jetson, be it tensorrt (c++ or python) or tensorrt with deepstream.