From 9ad7dd54f9ed9016d4e51db0ea62df6f333ff416 Mon Sep 17 00:00:00 2001 From: Benson Ma Date: Mon, 28 Jul 2025 16:11:13 +0000 Subject: [PATCH] [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 --- torch/utils/hipify/cuda_to_hip_mappings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/torch/utils/hipify/cuda_to_hip_mappings.py b/torch/utils/hipify/cuda_to_hip_mappings.py index 787e0dc5098..c6798263f99 100644 --- a/torch/utils/hipify/cuda_to_hip_mappings.py +++ b/torch/utils/hipify/cuda_to_hip_mappings.py @@ -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)), ] )