RuntimeError:: CUDA error: no kernel image is available for execution on the device

Should I reinstall the new version of pytorch?
In the previous block, there was an error that Pytorch and CUDA did not match, so I solved it by installing’cudetoolkit’. Is the title error a separate issue?

The error is raised, if your current PyTorch build doesn’t support your GPU architecture. E.g. the current PyTorch binaries are built for sm>=3.7, so for older architectures you would have to build from source.