SWDEV-380405 - Check for invalid stream for hipMemcpyPeerAsync.

Change-Id: I6dfccb4d20bb638bd596c071030c68889743d706


[ROCm/clr commit: e940beb459]
This commit is contained in:
Jaydeep Patel
2023-02-03 11:45:07 +00:00
committed by Jaydeepkumar Patel
parent 24b7348137
commit 670267ec40
+3 -1
View File
@@ -232,7 +232,9 @@ hipError_t hipMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int src
srcDevice < 0 || dstDevice < 0) {
HIP_RETURN(hipErrorInvalidDevice);
}
if (!hip::isValid(stream)) {
return hipErrorContextIsDestroyed;
}
HIP_RETURN(hipMemcpyAsync(dst, src, sizeBytes, hipMemcpyDeviceToDevice, stream));
}