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

Change-Id: Ie3f0b81f7fc6de8df65ccff35f9aefb8f6abdfbe
This commit is contained in:
Sourabh Betigeri
2022-07-05 09:39:09 -07:00
zatwierdzone przez Sourabh Betigeri
rodzic 01ea934b3e
commit 8d48e0e6be
+5
Wyświetl plik
@@ -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)) {