SWDEV-499794 - Update AQL packet after updating GraphNode
Change-Id: I332d70bdf42a276894a548a02d636e370c2ca08c
Bu işleme şunda yer alıyor:
işlemeyi yapan:
Saleel Kudchadker
ebeveyn
f0063ba8da
işleme
08aee16573
@@ -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)) ||
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle