SWDEV-273026 - Fixes to retrieve valid device memory data when device context is changed and p2p is enabled

Change-Id: Ie3f0b81f7fc6de8df65ccff35f9aefb8f6abdfbe
此提交包含在:
Sourabh Betigeri authored and Sourabh Betigeri committed 2022-07-08 01:45:49 -04:00
1 父節點 01ea934b3e
當前提交 8d48e0e6be
1 file changed
+5
+5
查看文件
@@ -82,6 +82,11 @@ hipError_t ihipGraphAddKernelNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
return hipErrorInvalidDeviceFunction;
}
status = ihipValidateKernelParams(pNodeParams);
if (hipSuccess != status) {
return status;
}
// If neither 'kernelParams' or 'extra' are provided or if both are provided, return error
if ((pNodeParams->kernelParams == nullptr && pNodeParams->extra == nullptr) ||
(pNodeParams->kernelParams != nullptr) && (pNodeParams->extra != nullptr)) {