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

bugfix: do not use non-blocking copy for gpu to cpu transfer #564

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

yzh119
Copy link
Collaborator

@yzh119 yzh119 commented Oct 27, 2024

If we use async GPU to CPU copy in plan functions, we synchronize before we use the cpu array.
Since we have removed synchronization in plan functions, the GPU to CPU copy should be synchronized.

For flashinfer v0.2, it's encouraged to pass cpu indptr arrays to plan functions, and the synchronized GPU to CPU copy will be a no-op in this case.

@yzh119 yzh119 merged commit d30667b into main Oct 27, 2024
@yzh119 yzh119 deleted the do-not-use-nonblocking-for-gpu-to-cpu branch November 10, 2024 08:47
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

Successfully merging this pull request may close these issues.

1 participant