-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add warmup for CudaStream #422
Conversation
@alxiong Thanks for the contribution! 💪🏻 🚀 Can you run our formatter script (https://github.com/ingonyama-zk/icicle?tab=readme-ov-file#development-contributions) and we will review asap |
yup, fixing it now, will push soon. Thanks! |
@alxiong thx for the PR! Could you pls elaborate a bit on the use-case? You need to free the memory before the object is dropped and that's why the default free-on-drop doesn't work for you? |
the use case is, I want to "warm up" the stream by allocating and deallocating some bytes. and i want this to be non-blocking. when you run the benchmark (e.g. the |
Right. I think any call to the new function must be followed by |
good point, you convinced me. I didn't plan to use it in isolation anyway. I was planning to wrap it in my own
that sounds perfect, feel free to just edit on this PR if more convenient. btw, I want to ask, I should always carry around a |
alxiong#1 |
Warmup function added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Looks great 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alxiong if the PR looks good to you, I think we can merge it in.
sure, feel free to merge whenever! |
Describe the changes
Add a non-blocking
warmup
function toCudaStream
full credit to: @DmytroTym for the work.