If you’re using the card on the same system, you should reinstall pytorch.
To reduce compilation time and size, the cuda code is only compiled for the detected GPUs, so if you change GPU, you need to recompile.