Skip to content

Commit

Permalink
[Bug Fix] Compilation fix for -DMIOPEN_USE_ROCBLAS=Off (#2435)
Browse files Browse the repository at this point in the history
  • Loading branch information
cderb authored Oct 3, 2023
1 parent d8e5c6c commit 1605ca8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hip/handlehip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ struct HandleImpl
rhandle_pool.push_back(std::move(r_ptr));
}
#else
void add_stream(StreamPtr& s_ptr) { stream_pool.push_back(s_ptr); }
void add_stream(StreamPtr s_ptr) { stream_pool.push_back(s_ptr); }
#endif
// stream_pool used as cache for parallel streams created by MIOpen.
StreamPtrPool stream_pool;
Expand Down Expand Up @@ -362,7 +362,7 @@ void Handle::ReserveExtraStreamsInPool(int cnt) const
auto new_rhandle = CreateRocblasHandle(new_stream.get());
this->impl->ms_resourse_ptr->add_resours(std::move(new_stream), std::move(new_rhandle));
#else
this->impl->ms_resourse_ptr->add_resours(std::move(new_stream));
this->impl->ms_resourse_ptr->add_stream(std::move(new_stream));
#endif
}
}
Expand Down

0 comments on commit 1605ca8

Please sign in to comment.