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