I’m having the same problem and I’m wondering if there have been any updates to make it easier for pytorch to find my gpus. I have two:

Microsoft Remote Display Adapter               0
NVIDIA GeForce RTX 2070 SUPER    4293918720 4095
Microsoft Remote Display Adapter               0
NVIDIA GeForce RTX 2070 SUPER    4293918720 4095

But when I run torch.cuda.device_count(), I get 1. Everythinig runs smoothly on the one gpu, but I’d like to utilize both. I tried following the advice above, but the link to the jupyter notebook appears to be broken and when I run the code pasted in this question, I can’t install the package pycuda. Since this is from three years ago, I’m wondering if there has been an update.