onnxruntime::Stream needs an improvement #17087
cloudhan
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 1 reply
-
Could you write down the full example that involves rocm stream? Are you going to add operator hipStream_t() { ... } in BetterStream as well? Why not do the same trick in the Stream class? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently to use newly introduced onnxruntime::Stream, the experience is pretty awkward.
The main problem is that you need to manually
static_cast
the native stream handle before calling any function accepts native stream.A aggragate wrapper with conversion function implemented will solve this problem at large margin as shown below:
https://godbolt.org/z/hMqax8vxv
With this, I think to move to ort stream at whole repo will be as simple as a sed replace in the function signature.
@jslhcl @souptc
Beta Was this translation helpful? Give feedback.
All reactions