SWDEV-554372 - cuda mappings for GetProcAddress API and flags (#1089)

This commit is contained in:
Todd tiantuo Li
2025-12-11 23:59:51 -08:00
committed by GitHub
orang tua 840301e12d
melakukan 0eccbf0534
@@ -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: