Skip to content

Conversation

@yuguo68
Copy link
Contributor

@yuguo68 yuguo68 commented Jan 17, 2026

Motivation

add compile macros AITER_EMBEDDED_HSA_HEADER and AITER_EMBEDDED_HSA_MAP and use them only when the env var AITER_ASM_DIR is not set.
Therefore we can set it at compile time to embed the .co files to the binary.

This is useful for enabling aiter in PyTorch, see pytorch/pytorch#172592 (comment).

Technical Details

Test Plan

Test Result

Submission Checklist

@yuguo68 yuguo68 requested a review from a team January 17, 2026 02:30
@yuguo68
Copy link
Contributor Author

yuguo68 commented Jan 17, 2026

cc: @valarLip @alugorey for review.

@yuguo68 yuguo68 changed the title add a compile macro AITER_ASM_DIR add compile macros to embed hsa .co files Jan 21, 2026
@yuguo68
Copy link
Contributor Author

yuguo68 commented Jan 21, 2026

@valarLip @alugorey, could you help review? this is (1) the patch we make at Meta to embed the .co files in the binary. (2) to pack the .co files with the PyTorch aiter update, see pytorch/pytorch#172592 (comment).

Copy link
Contributor

@alugorey alugorey left a comment

Choose a reason for hiding this comment

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

LGTM but we need someone on the AITER team to review

@HaiShaw
Copy link
Collaborator

HaiShaw commented Jan 22, 2026

@valarLip @carlushuang @alugorey Please help review and merge soon, needed for OSS PyTorch's aiter update.

@yuguo68
Copy link
Contributor Author

yuguo68 commented Jan 23, 2026

@valarLip could you help review? aiter mha bwd fav3 is integrated with OSS PyTorch, and we would like to embed the .co files so there is no need to for users to set AITER_ASM_DIR.

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.

3 participants