-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: do not use non-blocking copy for gpu to cpu transfer (#564)
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.
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters