From bb008fbf94d74e9991e5cb1cafea0c906e95e6b9 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 15 May 2018 16:36:25 -0400
Subject: [PATCH] P4 to Git Change 1555197 by cpaquot@cpaquot-ocl-lc-lnx on
2018/05/15 16:26:41
SWDEV-145570 - [HIP] Fixed a typo, hipStreamGetFlags test passes now
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_stream.cpp#10 edit
---
api/hip/hip_stream.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/hip/hip_stream.cpp b/api/hip/hip_stream.cpp
index 6fc8140f6c..9b5efde29c 100644
--- a/api/hip/hip_stream.cpp
+++ b/api/hip/hip_stream.cpp
@@ -84,7 +84,7 @@ hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int *flags) {
auto it = streamSet.find(hostQueue);
if(flags != nullptr) {
- *flags = (it != streamSet.end()) ? hipStreamNonBlocking : hipStreamDefault;
+ *flags = (it == streamSet.end()) ? hipStreamNonBlocking : hipStreamDefault;
} else {
return hipErrorInvalidValue;
}