From 0eccbf0534c4daad00e1066af4a2bd7b6dcb71ac Mon Sep 17 00:00:00 2001 From: Todd tiantuo Li <88386084+lttamd@users.noreply.github.com> Date: Thu, 11 Dec 2025 23:59:51 -0800 Subject: [PATCH] SWDEV-554372 - cuda mappings for GetProcAddress API and flags (#1089) --- .../include/hip/nvidia_detail/nvidia_hip_runtime_api.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h b/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h index 8f6c295aab..c43bb6ef04 100644 --- a/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h +++ b/projects/hipother/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h @@ -1001,6 +1001,7 @@ typedef enum cudaGraphInstantiateFlags hipGraphInstantiateFlags; #define hipGraphInstantiateFlagDeviceLaunch cudaGraphInstantiateFlagDeviceLaunch #define hipGraphInstantiateFlagUseNodePriority cudaGraphInstantiateFlagUseNodePriority +// Driver Entry Point Access typedef enum cudaDriverEntryPointQueryResult hipDriverEntryPointQueryResult; #define hipDriverEntryPointSuccess cudaDriverEntryPointSuccess #define hipDriverEntryPointSymbolNotFound cudaDriverEntryPointSymbolNotFound @@ -1010,6 +1011,15 @@ typedef enum cudaDriverEntryPointQueryResult hipDriverEntryPointQueryResult; #define hipEnableLegacyStream cudaEnableLegacyStream #define hipEnablePerThreadDefaultStream cudaEnablePerThreadDefaultStream +typedef enum CUdriverProcAddressQueryResult hipDriverProcAddressQueryResult +#define HIP_GET_PROC_ADDRESS_SUCCESS CU_GET_PROC_ADDRESS_SUCCESS +#define HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND +#define HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT + +#define HIP_GET_PROC_ADDRESS_DEFAULT CU_GET_PROC_ADDRESS_DEFAULT +#define HIP_GET_PROC_ADDRESS_LEGACY_STREAM CU_GET_PROC_ADDRESS_LEGACY_STREAM +#define HIP_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM + inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) { switch (cuError) { case cudaSuccess: