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

Why fused attention is only applicable on Ampere GPUs? #1279

Open
rayleizhu opened this issue Mar 5, 2023 · 1 comment
Open

Why fused attention is only applicable on Ampere GPUs? #1279

rayleizhu opened this issue Mar 5, 2023 · 1 comment

Comments

@rayleizhu
Copy link

Hi, I'm writing my operator using fused attention as a template. However, I found that fused attention requires an Ampere arch:

https://github.com/openai/triton/blob/d376020f90002757eea3ea9475d4f7cfc2ec5ead/python/triton/ops/flash_attention.py#L200

I do not understand this.

  • Does it mean this template uses some arch-specific operators?
  • To use it on Volta GPU, how should I modify it?

Besides, it seems that only head_dim=64 is supported, right? How can I fix it for the head_dim=32 case?

https://github.com/openai/triton/blob/d376020f90002757eea3ea9475d4f7cfc2ec5ead/python/triton/ops/flash_attention.py#L207

@ptillet
Copy link
Collaborator

ptillet commented Mar 6, 2023

there is some more information in #616

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

2 participants