SWDEV-326798 - Revert "SWDEV-326798 - Changes in stream sync behavior"

This reverts commit 51adec2730.

Reason for revert: HIP tests on windows fails

Change-Id: I795ed19d76a41e2fd9971414cefa5bd3be45d4bc
This commit is contained in:
Sourabh Betigeri
2023-02-28 02:28:12 -05:00
parent 51adec2730
commit 08c8972d97
4 changed files with 14 additions and 19 deletions
+5 -6
View File
@@ -91,12 +91,12 @@ void setCurrentDevice(unsigned int index) {
amd::Os::setPreferredNumaNode(preferredNumaNode);
}
hip::Stream* getStream(hipStream_t stream, bool wait) {
hip::Stream* getStream(hipStream_t stream) {
if (stream == nullptr) {
return getNullStream(wait);
return getNullStream();
} else {
hip::Stream* hip_stream = reinterpret_cast<hip::Stream*>(stream);
if (wait && !(hip_stream->Flags() & hipStreamNonBlocking)) {
if (!(hip_stream->Flags() & hipStreamNonBlocking)) {
constexpr bool WaitNullStreamOnly = true;
iHipWaitActiveStreams(hip_stream, WaitNullStreamOnly);
}
@@ -131,10 +131,9 @@ int getDeviceID(amd::Context& ctx) {
}
// ================================================================================================
hip::Stream* getNullStream(bool wait) {
hip::Stream* getNullStream() {
Device* device = getCurrentDevice();
constexpr bool kSkipAlloc = false;
return device ? device->NullStream(kSkipAlloc, wait) : nullptr;
return device ? device->NullStream() : nullptr;
}
};