From 294bf50f6861d2ffec2857f4e4f0967decc2363c Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Wed, 11 Apr 2018 19:01:53 +0530 Subject: [PATCH] Fix hipMemset stream resolution --- src/hip_memory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hip_memory.cpp b/src/hip_memory.cpp index 0644f8de99..52a88e8b88 100644 --- a/src/hip_memory.cpp +++ b/src/hip_memory.cpp @@ -1619,6 +1619,7 @@ hipError_t hipMemset(void* dst, int value, size_t sizeBytes) { hipError_t e = hipSuccess; hipStream_t stream = hipStreamNull; + stream = ihipSyncAndResolveStream(stream); if (stream) { e = ihipMemset(dst, value, sizeBytes, stream, ihipMemsetCopyDataTypeChar); stream->locked_wait();