SWDEV-454247 - Fix graph multi threading issue

Change-Id: I565889da6f7091030b7f6a2d6234b82c389358e3
This commit is contained in:
Anusha GodavarthySurya
2024-04-19 12:26:30 +00:00
committed by Maneesh Gupta
parent 2d7912dc01
commit de95625f09
2 changed files with 44 additions and 15 deletions
+6 -2
View File
@@ -93,8 +93,12 @@ hipError_t ihipGraphAddKernelNode(hip::GraphNode** pGraphNode, hip::Graph* graph
if (!hip::Graph::isGraphValid(graph)) {
return hipErrorInvalidValue;
}
hipError_t status = hip::GraphKernelNode::validateKernelParams(pNodeParams);
hipFunction_t func = hip::GraphKernelNode::getFunc(*pNodeParams, ihipGetDevice());
if (!func) {
return hipErrorInvalidDeviceFunction;
}
hipError_t status =
hip::GraphKernelNode::validateKernelParams(pNodeParams, func, ihipGetDevice());
if (hipSuccess != status) {
return status;
}