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

Launch multiple kernels for large batch sizes (> 65535) & Use int64 index #4

Merged
merged 4 commits into from
Jun 10, 2021

Conversation

merrymercy
Copy link
Member

If the batch size is larger than 65535, it will trigger a CUDA block size limitation.
This PR fixes this issue by launching multiple kernels for batch size > 65535.

This PR also updates all int32 index to int64 to prevent potential integer overflow.

@merrymercy merrymercy changed the title Use int64 index & Launch multiple kernels for large batch sizes (> 65535) Launch multiple kernels for large batch sizes (> 65535) & Use int64 index Jun 10, 2021
@merrymercy merrymercy merged commit 96185cc into main Jun 10, 2021
@merrymercy merrymercy deleted the lmzheng branch July 17, 2021 03:12
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