SWDEV-421025 Graph Kernel Node Attr ID/Value for Nvidia
Change-Id: Ia4676acbadf30fab4041ac7939c8dc6e3996b4e7
[ROCm/hipother commit: 8195ac393a]
This commit is contained in:
@@ -1574,6 +1574,20 @@ typedef union cudaKernelNodeAttrValue hipKernelNodeAttrValue;
|
||||
typedef enum cudaKernelNodeAttrID hipKernelNodeAttrID;
|
||||
#define hipKernelNodeAttributeAccessPolicyWindow cudaKernelNodeAttributeAccessPolicyWindow
|
||||
#define hipKernelNodeAttributeCooperative cudaKernelNodeAttributeCooperative
|
||||
#define hipKernelNodeAttributePriority cudaKernelNodeAttributePriority
|
||||
|
||||
#if CUDA_VERSION >= CUDA_12000
|
||||
typedef enum cudaGraphInstantiateResult hipGraphInstantiateResult;
|
||||
#define hipGraphInstantiateSuccess cudaGraphInstantiateSuccess
|
||||
#define hipGraphInstantiateError cudaGraphInstantiateError
|
||||
#define hipGraphInstantiateInvalidStructure cudaGraphInstantiateInvalidStructure
|
||||
#define hipGraphInstantiateNodeOperationNotSupported cudaGraphInstantiateNodeOperationNotSupported
|
||||
#define hipGraphInstantiateMultipleDevicesNotSupported \
|
||||
cudaGraphInstantiateMultipleDevicesNotSupported
|
||||
|
||||
#define hipGraphInstantiateParams cudaGraphInstantiateParams
|
||||
#endif
|
||||
|
||||
typedef enum cudaAccessProperty hipAccessProperty;
|
||||
#define hipAccessPropertyNormal cudaAccessPropertyNormal
|
||||
#define hipAccessPropertyStreaming cudaAccessPropertyStreaming
|
||||
@@ -3595,6 +3609,15 @@ inline static hipError_t hipGraphInstantiate(hipGraphExec_t* pGraphExec, hipGrap
|
||||
cudaGraphInstantiate(pGraphExec, graph, pErrorNode, pLogBuffer, bufferSize));
|
||||
}
|
||||
|
||||
#if CUDA_VERSION >= CUDA_12000
|
||||
inline static hipError_t hipGraphInstantiateWithParams(hipGraphExec_t* pGraphExec, hipGraph_t graph,
|
||||
hipGraphInstantiateParams *instantiateParams)
|
||||
{
|
||||
return hipCUDAErrorTohipError(cudaGraphInstantiateWithParams(pGraphExec, graph,
|
||||
instantiateParams));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CUDA_VERSION >= CUDA_11040
|
||||
inline static hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t* pGraphExec, hipGraph_t graph,
|
||||
unsigned long long flags) {
|
||||
|
||||
Reference in New Issue
Block a user