diff --git a/projects/clr/hipamd/src/hip_stream.cpp b/projects/clr/hipamd/src/hip_stream.cpp index 7152ed1ba2..afa526b7d6 100644 --- a/projects/clr/hipamd/src/hip_stream.cpp +++ b/projects/clr/hipamd/src/hip_stream.cpp @@ -581,13 +581,13 @@ hipError_t streamCallback_common(hipStream_t stream, StreamCallback* cbo, void* return hipErrorInvalidValue; } block_command->enqueue(); - block_command->release(); // Release the callback marker command->release(); // Notify the command queue about a possible waiter for the calback block_command->notifyCmdQueue(); + block_command->release(); return hipSuccess; }