I have installed cuda (11.8 and 12.0)
I have installed pytorch 2.2.1 for cuda 11.8
I also created qt .pro file and declared paths to cuda and pytorch
I also added cuda library paths to .bashrc
When i run my application: #include #include “torch/torch.h” #include “torch/jit.h” #include “torch/nn.h” #include “torch/script.h”
I have downloaded (from official website) pytorch 2.2.1 with support of CUDA 11.8 but output of application shows CUDA 12.1(as shown in my output) May be it doesn’t matter, but i have no idea.
currently, i have installed cuda 12.1 and changed my environment.
I also downloaded pytorch 2.2.1 with support of cuda 12.1
I have next environment:
declare -x CUDA_HOME=“/usr/local/cuda-12.1”
declare -x LD_LIBRARY_PATH=“:/usr/local/cuda-12.1/lib64:/opt/PYTORCH/libtorch22/libtorch/lib/”
declare -x PATH=“/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/cuda-12.1/bin”
But troubles is not solved.
Does it mean that download link of official website is wrong ?
No, I only used my GPU for tensorflow
user@usercomp:~$ nvidia-smi
Thu Feb 29 07:30:35 2024
±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.161.07 Driver Version: 535.161.07 CUDA Version: 12.2 |
|-----------------------------------------±---------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3060 … On | 00000000:01:00.0 Off | N/A |
| N/A 37C P0 N/A / 80W | 8MiB / 6144MiB | 0% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+
±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 2577 G /usr/lib/xorg/Xorg 4MiB |
±--------------------------------------------------------------------------------------+