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

Change-Id: Ie3f0b81f7fc6de8df65ccff35f9aefb8f6abdfbe
Este cometimento está contido em:
Sourabh Betigeri criou e Sourabh Betigeri cometeu 2022-07-08 01:45:49 -04:00
1 ascendente 01ea934b3e
cometimento 8d48e0e6be
1 ficheiro modificado
+5
+5
Ver ficheiro
@@ -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)) {