[ROCm] Fix HIP document url. (#168220)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/168220
Approved by: https://github.com/jeffdaily
This commit is contained in:
Jagadish Krishnamoorthy
2025-11-20 20:12:51 +00:00
committed by PyTorch MergeBot
parent 2eccaf9ca5
commit 4887c46900

View File

@@ -17,8 +17,13 @@ std::string get_cuda_error_help(cudaError_t error) noexcept {
default:
help_text.append("\nSearch for `")
.append(cudaGetErrorName(error))
#if defined(USE_ROCM)
.append(
"' in https://rocm.docs.amd.com/projects/HIP/en/latest/index.html for more information.");
#else
.append(
"' in https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for more information.");
#endif
break;
}
return help_text;