Skip to content
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

Internal function to update the stream? #582

Open
chaithyagr opened this issue Oct 22, 2024 · 0 comments
Open

Internal function to update the stream? #582

chaithyagr opened this issue Oct 22, 2024 · 0 comments

Comments

@chaithyagr
Copy link
Contributor

It could help a lot to have an internal function to change the stream for computing, accessible on python through plans.
This can be very useful in practice to have memory efficient implementation of NUFFT with data transfers happening on different streams.

The idea would be:
Copy input1 on Stream1
Copy input2 on Stream2
Compute1 on Stream1
Copy Result1 on Stream2

Copy input3 on Stream1
Compute2 on Stream2
Copy Result2 on Stream2

Copy input4 on Stream2
Compute3 on Stream1
Copy Result3 on Stream1

All this can be done using a single plan if we can update the streams, and help hiding the performance overloads of memory copies.

This can be made a discussion as I am not fully sure if this can work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant