Why does JAX bind a handle to each stream when calling BLAS? #23962
Unanswered
south-ocean
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Good question! I don't expect that this will have any major performance implications but I'd be interested if you found a case where you think it would. I'm not totally clear from the CUDA solver docs about the implications of using the same handle with multiple streams, but it sounds like it might be ok to reuse a handle as long as we call |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I noticed that JAX binds a handle to each stream when calling BLAS, while in the Torch framework, a handle is shared across each device. If a handle is bound to each stream, does that increase the overhead of handle creation and management? Would it be better for JAX to modify its approach to share a handle for each device instead? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions