SWDEV-454247 - Fix graph multi threading issue
Change-Id: I565889da6f7091030b7f6a2d6234b82c389358e3
Этот коммит содержится в:
коммит произвёл
Maneesh Gupta
родитель
2d7912dc01
Коммит
de95625f09
@@ -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;
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user