The error is raised, if you are trying to execute CUDA code missing the right compute capability for the used device.
The Tesla K20 should have a compute capability of 3.5, which is not shipped in the binaries anymore.
You could build PyTorch from source as described here 22.