[fbgemm_gpu] Upgrade KernelLauncher kernelLaunchCheck to print help string (#158896)

Summary: - Upgrade KernelLauncher kernelLaunchCheck to print help string, following D78440016

Test Plan:
```
buck test 'fbcode//mode/opt' fbcode//deeplearning/fbgemm/fbgemm_gpu/test/utils:kernel_launcher
```

Rollback Plan:

Differential break Revision: D78572009

Pull Request resolved: https://github.com/pytorch/pytorch/pull/158896
Approved by: https://github.com/atalman
This commit is contained in:
Benson Ma 2025-07-28 16:11:13 +00:00 committed by PyTorch MergeBot
parent 387db86ef1
commit 9ad7dd54f9

View File

@ -9148,6 +9148,7 @@ C10_MAPPINGS = collections.OrderedDict(
("C10_CUDA_KERNEL_LAUNCH_CHECK", ("C10_HIP_KERNEL_LAUNCH_CHECK", API_C10)),
("CUDAKernelLaunchRegistry", ("HIPKernelLaunchRegistry", API_C10)),
("c10::cuda::get_cuda_check_suffix", ("c10::hip::get_hip_check_suffix", API_C10)),
("c10::cuda::get_cuda_error_help", ("c10::hip::get_hip_error_help", API_C10)),
]
)