I have a fresh install of Ubuntu on my computer with NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] (rev a1). I just want to use my GPU to work with Pytorch but im having trouble getting Cuda installed.
I began by following an online tutorial which told me that if I installed pytorch with anaconda, then i don’t need to install Cuda seperately (https://youtu.be/UWlFM0R_x6I). However, this did not work, following his advice torch.cuda.is_available() still returns False.
Then I looked up further guides and I think the problem is that I don’t have the necessary drivers for my GPU and i lack the cuda toolkit. I think this because on my computer “nvcc --version” returns “command nvcc not found”, which is an indication that I lacked cuda toolkit. So I downloaded cuda toolkit 10 from https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804 and tried torch.cuda.is_available() again but it still returns False.
I repeated the above action several times for toolkit 10,9,8 and it did not work. I also tried to download nvidia drivers from https://www.nvidia.com/Download/index.aspx which required I uninstall some things, I can’t remember what they were but it caused my computer to crash and i had to reinstall ubuntu.
I lack any knowledge of setting up graphics cards for machines so excuse my ignorance on the subject.