SWDEV-527781 - Remove Stream Validation in HIP APIs

[ROCm/clr commit: 0457b634f8]
This commit is contained in:
Xie, Pengda
2025-05-13 13:45:27 -07:00
committed by GitHub
parent 71f19d7017
commit d0b5bee680
7 changed files with 21 additions and 68 deletions
+1 -3
View File
@@ -209,9 +209,7 @@ 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;
}
getStreamPerThread(stream);
hip::Stream* hip_stream = hip::getStream(stream);
if (hip_stream == nullptr) {
return hipErrorInvalidValue;