SWDEV-315118 - Add version check for hipGraphInstantiateWithFlags on nvidia path

Change-Id: I672b4a5287348bddf6eb8955decc9cce786275a2


[ROCm/clr commit: 1524c9515e]
Cette révision appartient à :
Satyanvesh Dittakavi a révisé 2022-03-09 02:10:08 -05:00
1 Parent 5e46689191
révision ba72e59817
1 fichier modifié
+3 -1
+3 -1
Voir le fichier
@@ -34,6 +34,7 @@ THE SOFTWARE.
#define CUDA_10020 10020
#define CUDA_11010 11010
#define CUDA_11030 11030
#define CUDA_11040 11040
#ifdef __cplusplus
extern "C" {
@@ -2412,11 +2413,12 @@ inline static hipError_t hipGraphInstantiate(hipGraphExec_t* pGraphExec, hipGrap
cudaGraphInstantiate(pGraphExec, graph, pErrorNode, pLogBuffer, bufferSize));
}
#if CUDA_VERSION >= CUDA_11040
inline static hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t* pGraphExec, hipGraph_t graph,
unsigned long long flags) {
return hipCUDAErrorTohipError(cudaGraphInstantiateWithFlags(pGraphExec, graph, flags));
}
#endif
inline static hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream) {
return hipCUDAErrorTohipError(cudaGraphLaunch(graphExec, stream));
}