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

[AMD] Supporting fused kernels build using JIT #1188

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

R0n12
Copy link
Contributor

@R0n12 R0n12 commented Mar 18, 2024

This PR aims to enable JIT compilation for fused kernels on AMD GPUs, so that the same code will run on both AMD and NVIDIA GPUs.

Previous python setup.py install method has issues with hipifying files, which results in ninja generating multiple rules for the same target.

This will also make the extra fused kernel building instruction in the readme unnecessary. I will take care of the readme parts once this get approved

  • builds on AMD (MI100, MI250X) and NVIDIA (A100)
  • test_fused_kernels.py passed

#954
Reference: microsoft/Megatron-DeepSpeed@b4d4a0e

@R0n12 R0n12 marked this pull request as ready for review March 18, 2024 07:01
Copy link
Member

@Quentin-Anthony Quentin-Anthony left a comment

Choose a reason for hiding this comment

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

Tested and working for me!

@Quentin-Anthony Quentin-Anthony merged commit 51a7de9 into EleutherAI:main Apr 1, 2024
2 of 5 checks passed
@StellaAthena
Copy link
Member

@Quentin-Anthony should we update the README to reflect this change?

@Quentin-Anthony
Copy link
Member

@Quentin-Anthony should we update the README to reflect this change?

Yes. We're on it now.

@R0n12 R0n12 deleted the lang/neox-amd branch May 20, 2024 18:42
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