Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/blas/backends/rocblas/rocblas_scope_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ rocblas_handle RocblasScopedContextHandler::get_handle(const sycl::queue& queue)
}

hipStream_t RocblasScopedContextHandler::get_stream(const sycl::queue& queue) {
return sycl::get_native<sycl::backend::ext_oneapi_hip>(queue);
// The stream must come from the interop handle rather than from the queue:
// a queue owns a pool of streams and only the one the command was scheduled
// on is tracked by the SYCL event that gates this command's completion.
return interop_h.get_native_queue<sycl::backend::ext_oneapi_hip>();
}
sycl::context RocblasScopedContextHandler::get_context(const sycl::queue& queue) {
return queue.get_context();
Expand Down
Loading