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; }