SWDEV-499794 - Update AQL packet after updating GraphNode

Change-Id: I332d70bdf42a276894a548a02d636e370c2ca08c


[ROCm/clr commit: 08aee16573]
Этот коммит содержится в:
Marko Arandjelovic
2024-11-25 16:11:18 +02:00
коммит произвёл Saleel Kudchadker
родитель 838cfe1d29
Коммит 36ba236426
+13 -3
Просмотреть файл
@@ -3385,8 +3385,8 @@ hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t no
hipGraphNodeParams* nodeParams) {
HIP_INIT_API(hipGraphNodeSetParams, graphExec, node, nodeParams);
hip::GraphNode* n = reinterpret_cast<hip::GraphNode*>(node);
if (node == nullptr || nodeParams == nullptr || graphExec == nullptr
|| !hip::GraphNode::isNodeValid(n)) {
if (node == nullptr || nodeParams == nullptr || graphExec == nullptr ||
!hip::GraphNode::isNodeValid(n)) {
HIP_RETURN(hipErrorInvalidValue);
}
hip::GraphNode* clonedNode = reinterpret_cast<hip::GraphNode*>(
@@ -3394,8 +3394,18 @@ hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t no
if (clonedNode == nullptr) {
HIP_RETURN(hipErrorInvalidValue);
}
HIP_RETURN(ihipGraphNodeSetParams(clonedNode, nodeParams));
hipError_t status = ihipGraphNodeSetParams(clonedNode, nodeParams);
if (status != hipSuccess) {
return status;
}
if (DEBUG_CLR_GRAPH_PACKET_CAPTURE) {
status = reinterpret_cast<hip::GraphExec*>(graphExec)->UpdateAQLPacket(clonedNode);
}
return status;
}
hipError_t hipDrvGraphMemcpyNodeGetParams(hipGraphNode_t hNode, HIP_MEMCPY3D* nodeParams) {
HIP_INIT_API(hipDrvGraphMemcpyNodeGetParams, hNode, nodeParams);
if (!hip::GraphNode::isNodeValid(reinterpret_cast<hip::GraphNode*>(hNode)) ||