My environment is
- NVIDIA GeForce 930MX + latest Nvidia driver
- win10 + WSL2 + Docker Desktop + nvcr.io/nvidia/pytorch:23.07-py3
What works:
- compare running
cuda-sample:nbody
container on GPU vs CPU shows GPU acceleration is available:
** GPU 450.378 single-precision GFLOP/s
** CPU 0.626 single-precision GFLOP/s - torch.cuda.is_available() returns True.
What doesn’t work:
NVIDIA GeForce 930MX which is of cuda capability 5.0.
PyTorch no longer supports this GPU because it is too old.
The minimum cuda capability supported by this library is 5.2.
I heard build from source can make old GPU work, so I tried:
python setup.py develop
It took a few hours to build, surprisingly there was no error, pytorch is successfully built, thanks to docker.
However, pytorch still does not work on the old GPU.
Can pytorch still work on old GPU if build from source?
Would recompile with TORCH_USE_CUDA_DSA
make it work? What other flags should I enable/disable when recompile?