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

Change-Id: Ie3f0b81f7fc6de8df65ccff35f9aefb8f6abdfbe
이 커밋은 다음에 포함됨:
Sourabh Betigeri 작성하고 Sourabh Betigeri가 2022-07-08 01:45:49 -04:00를 커밋함
1 부모 01ea934b3e
커밋 8d48e0e6be
1 파일이 변경됨
+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)) {