SWDEV-454247 - Fix graph multi threading issue

Change-Id: I565889da6f7091030b7f6a2d6234b82c389358e3


[ROCm/clr commit: de95625f09]
This commit is contained in:
Anusha GodavarthySurya authored and Maneesh Gupta committed 2024-05-28 06:28:17 +00:00
1 szülő 76f0560319
commit ece7fa9f76
2 files changed
+44 -15

No files matched your search

@@ -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;
}