Revert "SWDEV-492768 - Match hipStreamAddCallback capture behavior with nvidia"

This reverts commit 30571de816.

Reason for revert: It is considered a breaking change.

Change-Id: I9b2dfc60f62eec7268c0374b0b33e45eca7b3bbb


[ROCm/clr commit: ed458615c4]
This commit is contained in:
Vladana Stojiljkovic
2024-11-07 04:33:47 -05:00
parent d1cf8700c8
commit a72274c22e
-12
View File
@@ -609,18 +609,6 @@ hipError_t hipStreamAddCallback_common(hipStream_t stream, hipStreamCallback_t c
if (callback == nullptr || flags != 0) {
return hipErrorInvalidValue;
}
if (stream != nullptr) {
// Not supported while stream is capturing
if (hip::Stream::StreamCaptureOngoing(stream) == true) {
HIP_RETURN(hipErrorStreamCaptureUnsupported);
}
} else if (Stream::StreamCaptureBlocking() == true) {
// If any of the blocking streams is capturing, return error for implicit capture and invalidate
// capture for all capturing streams
CHECK_STREAM_CAPTURING();
}
StreamCallback* cbo = new StreamAddCallback(stream, callback, userData);
return streamCallback_common(stream, cbo, userData);
}