SWDEV-546285 - add hipGetDriverEntryPoint (#35)

This commit is contained in:
Li, Todd tiantuo
2025-08-15 22:38:34 -07:00
committato da GitHub
parent a7580daf57
commit 87f262a56f
@@ -1000,6 +1000,15 @@ typedef enum cudaGraphInstantiateFlags hipGraphInstantiateFlags;
#define hipGraphInstantiateFlagDeviceLaunch cudaGraphInstantiateFlagDeviceLaunch
#define hipGraphInstantiateFlagUseNodePriority cudaGraphInstantiateFlagUseNodePriority
typedef enum cudaDriverEntryPointQueryResult hipDriverEntryPointQueryResult;
#define hipDriverEntryPointSuccess cudaDriverEntryPointSuccess
#define hipDriverEntryPointSymbolNotFound cudaDriverEntryPointSymbolNotFound
#define hipDriverEntryPointVersionNotSufficent cudaDriverEntryPointVersionNotSufficent
#define hipEnableDefault cudaEnableDefault
#define hipEnableLegacyStream cudaEnableLegacyStream
#define hipEnablePerThreadDefaultStream cudaEnablePerThreadDefaultStream
inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
switch (cuError) {
case cudaSuccess:
@@ -3722,6 +3731,13 @@ inline static hipError_t hipGetChannelDesc(hipChannelFormatDesc* desc, hipArray_
return hipCUDAErrorTohipError(cudaGetChannelDesc(desc,array));
}
inline static hipError_t hipGetDriverEntryPoint(const char* symbol, void** funcPtr,
unsigned long long flags,
hipDriverEntryPointQueryResult* driverStatus)
{
return hipCUDAErrorTohipError(cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus));
}
inline static hipError_t hipLaunchCooperativeKernel(const void* f, dim3 gridDim, dim3 blockDim,
void** kernelParams, unsigned int sharedMemBytes,
hipStream_t stream) {