Skip to content

feat: support hygon flash attn 2#1348

Merged
wooway777 merged 1 commit into
mainfrom
feat/support-hygon-fa2
Jun 30, 2026
Merged

feat: support hygon flash attn 2#1348
wooway777 merged 1 commit into
mainfrom
feat/support-hygon-fa2

Conversation

@wooway777

Copy link
Copy Markdown
Collaborator

No description provided.

@wooway777 wooway777 requested a review from a team June 29, 2026 08:56
#if defined(ENABLE_HYGON_API)
#include <c10/hip/HIPFunctions.h>
#include <c10/hip/HIPGuard.h>
#elif defined(ENABLE_NVIDIA_API) || defined(ENABLE_METAX_API) || defined(ENABLE_QY_API)

@pengcheng888 pengcheng888 Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在专门的海光命令的mha_varlen_flashattn_hygon.cc文件中,还需要考虑其他平台的宏么?defined(ENABLE_NVIDIA_API) || defined(ENABLE_METAX_API) || defined(ENABLE_QY_API)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不用,默认是把海光这个文件夹移除了的,别的平台不会编。

另外我觉得别的平台以后也得拆开,不然那几个文件越写越恶心了

@wooway777 wooway777 force-pushed the feat/support-hygon-fa2 branch from cc30e67 to b967a54 Compare June 29, 2026 10:39
@wooway777 wooway777 marked this pull request as draft June 29, 2026 12:29
@wooway777 wooway777 force-pushed the feat/support-hygon-fa2 branch from b967a54 to 7d634d2 Compare June 29, 2026 13:53
@wooway777 wooway777 force-pushed the feat/support-hygon-fa2 branch from 7d634d2 to ef7b5ac Compare June 30, 2026 01:45
@wooway777 wooway777 marked this pull request as ready for review June 30, 2026 01:46
@wooway777 wooway777 merged commit 4c3faf2 into main Jun 30, 2026
10 checks passed
@wooway777 wooway777 deleted the feat/support-hygon-fa2 branch June 30, 2026 02:07
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.

2 participants