SWDEV-380405 - Check for invalid stream for hipMemcpyPeerAsync.

Change-Id: I6dfccb4d20bb638bd596c071030c68889743d706
此提交包含在:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2023-02-08 00:47:35 -05:00
1 父節點 03f62b90ef
當前提交 e940beb459
1 file changed
+3 -1
+3 -1
查看文件
@@ -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));
}