Fix error message for a wrong fork CUDA (#23322)
Summary:
Re-land https://github.com/pytorch/pytorch/pull/23030
Pull Request resolved: https://github.com/pytorch/pytorch/pull/23322
Differential Revision: D16469442
Pulled By: zhangguanheng66
fbshipit-source-id: 70b63ab6265efa3f289111ef0ce46bb3c0d353bc