Setting up cuda and nvidia on arch linux. Clueless.
I've never used dedicated GPUs ever, if that makes any sense. Recently bought a new laptop and installed arch.
I have set up nvidia and nvidia-prime. I used the nvidia-dkms package because i compiled a custom kernel for my laptop. If I want to run programs with pytorch, or if I have to run games, do I have to install cuda package as well?
I'm sorry if I sounds like a complete beginner.. And is there a way to monitor these gpu processes except nvidia-smi. Coz nvidia-smi is not live and nvidia-settings only shows GPU utlilization percentage without any other details.
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- j163ev
5 comments
watch -d -n1 nvidia-smi
See: https://linux.die.net/man/1/watch
Also: https://github.com/Syllo/nvtop
Games don't need cuda. If you want to do gpu programming using cuda then you need cuda (so yes with pytorch)
Nice! Thanks for the watch suggestion!
After installing cuda do I need to to change any configs to make it work with pytorch?
In windows it seems to work out of the box in anaconda
Depends on your setup - If you use anaconda or install pytorch from the repo. But I don't recall anything special - IIRC I used the repo installs.
https://pytorch.org/get-started/locally/
Describes some installation options.
Do keep in mind the cuda version you instal and what cuda version pytorch supports.
There is also
nvtopin the repos with a color output. Its the nvidia gpu monitoring equivalent of going fromtoptohtopI think lm-sensor is a start. I need to stop being lazy and do this myself. If it recall it should be possible to use a combination of tools and Conky to have Conky display your gpu temp always. I haven’t done it but I am fairly sure that’s a viable method