Hi there.
Despite having a CUDA-enabled version of PyTorch installed, torch.cuda.is_available() is returning False.
Could I please seek your assistance with this?
Thanks in advance.
Thanks @ptrblck for your reply.
The left snapshot displays the system information from the NVIDIA Control Panel on my laptop. I’ve tried to download several NVIDIA drivers from https://www.nvidia.com/Download/Find.aspx?lang=en-us# (middle snapshot), but none of them have passed the compatibility check so far (right snapshot). Additionally, torch.cuda.get_arch_list() returns an empty list [].
I’m unsure what I might have done incorrectly.
Once you’ve properly installed a driver, double check that a single PyTorch binary with CUDA support is installed since the current one does not seem to ship with any CUDA kernels and thus returns an empty architecture list.
Yes, now it looks good. Run a quick test by allocating a random tensor on the GPU via torch.randn(1).cuda() and make sure you are able to allocate this tensor.