We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
def flash_mla(): torch.cuda.synchronize() tile_scheduler_metadata, num_splits = get_mla_metadata(cache_seqlens, s_q * h_q // h_kv, h_kv)
I added a sync(), and found that the performance was much worse. With sync(), it took 360us, while without it, it only took 50us.
sync()
Why does it feel like the cost time is a CPU's time? (The kernel submits asynchronously and hasn't finished executing yet.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I added a
sync()
, and found that the performance was much worse. Withsync()
, it took 360us, while without it, it only took 50us.Why does it feel like the cost time is a CPU's time? (The kernel submits asynchronously and hasn't finished executing yet.)
The text was updated successfully, but these errors were encountered: