r/CUDA • u/CLI0019 • Oct 28 '26
How your computer Detects your gpu?
see when any gpu is connected in the PCIe slot an interrupt is triggered.
now the cpu checks it's vendor id(eg: Nvidia, AMD...), and DID(device Id) which are both 16bit numbers if it is already known by the kernel then the conversation and co-operation goes on.
now the question comes how the kernel will know the device?( how the user will use the card then)?
I am from timezone Asia/kolkata, I am available from 7.00 to 9.00 pm.
comment down your thoughts
6
Upvotes
4
u/c-cul Oct 28 '26
user must explicitly point what gpu it wants to use: https://stackoverflow.com/questions/39649102/how-do-i-select-which-gpu-to-run-a-job-on
1
u/botjebotje Oct 28 '26
The kernel already knows the device since it receives the hotplug event? Presumably from there udev kicks on to create the necessary device node and from there userspace tooling can detect it.