Map new CUDA error handling to HIP (#75032) (#83953)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/75032
Test Plan: Sandcastle
Reviewed By: ezyang, malfet
Differential Revision: D35253785
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83953
Approved by: https://github.com/ezyang, https://github.com/malfet