[hipify] Replace cuda error cudaErrorContextIsDestroyed (#153576)

Summary: The cuda symbol the cuda symbol cudaErrorContextIsDestroyed is not converted to hipErrorContextIsDestroyed. Add this convertion

Test Plan: CI

Differential Revision: D74542735

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153576
Approved by: https://github.com/xw285cornell, https://github.com/cyyever
This commit is contained in:
Yulun Wang 2025-05-16 16:19:42 +00:00 committed by PyTorch MergeBot
parent a060f3d272
commit 3aa84775e7

View File

@ -792,6 +792,10 @@ CUDA_IDENTIFIER_MAP = collections.OrderedDict(
"cudaErrorSetOnActiveProcess",
("hipErrorSetOnActiveProcess", CONV_TYPE, API_RUNTIME, HIP_UNSUPPORTED),
),
(
"cudaErrorContextIsDestroyed",
("hipErrorContextIsDestroyed", CONV_TYPE, API_RUNTIME),
),
(
"cudaErrorInvalidSurface",
("hipErrorInvalidSurface", CONV_TYPE, API_RUNTIME, HIP_UNSUPPORTED),