Skip to content

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.

3 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
j163ev

Author

21
posts
104
comments
2
media
View profile

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)

4 points

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

1 points

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.

2 points

There is also nvtop in the repos with a color output. Its the nvidia gpu monitoring equivalent of going from top to htop

1 points

I 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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.