SWDEV-454247 - Fix graph multi threading issue

Change-Id: I565889da6f7091030b7f6a2d6234b82c389358e3
Этот коммит содержится в:
Anusha GodavarthySurya
2024-04-19 12:26:30 +00:00
коммит произвёл Maneesh Gupta
родитель 2d7912dc01
Коммит de95625f09
2 изменённых файлов: 44 добавлений и 15 удалений
+6 -2
Просмотреть файл
@@ -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;
}