diff --git a/projects/clr/hipamd/src/hip_graph.cpp b/projects/clr/hipamd/src/hip_graph.cpp index 1e03177518..a845ec0774 100644 --- a/projects/clr/hipamd/src/hip_graph.cpp +++ b/projects/clr/hipamd/src/hip_graph.cpp @@ -82,6 +82,11 @@ hipError_t ihipGraphAddKernelNode(hipGraphNode_t* pGraphNode, hipGraph_t graph, return hipErrorInvalidDeviceFunction; } + status = ihipValidateKernelParams(pNodeParams); + if (hipSuccess != status) { + return status; + } + // If neither 'kernelParams' or 'extra' are provided or if both are provided, return error if ((pNodeParams->kernelParams == nullptr && pNodeParams->extra == nullptr) || (pNodeParams->kernelParams != nullptr) && (pNodeParams->extra != nullptr)) {