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

Fused kernel support for AMD (using JIT) #1156

Closed
wants to merge 18 commits into from
Closed

Conversation

R0n12
Copy link
Contributor

@R0n12 R0n12 commented Feb 26, 2024

Overview

This PR aims to bring JIT support into building fused kernels. The main reason for the swtich is that hip extension acts weird (making ninja generates different rules for the same target) with the traditional CUDAExtension setup, thus in this PR we use cpp_extension.load(), this enables no code modification when building across AMD and NVIDIA platforms

Heads-up

This PR also bring in the cpp_extention_load_helper from here, note that we JIT load fused kernels on demand and depends on neox_args, this may introduce additional complexity in testing, for fused kernels testing, I recommend keeping the original setup.py file as a backup.

Aim to close #954

@CLAassistant
Copy link

CLAassistant commented Feb 26, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 4 committers have signed the CLA.

✅ StellaAthena
✅ R0n12
❌ Lang Xu
❌ hyoo


Lang Xu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@R0n12 R0n12 marked this pull request as draft February 26, 2024 15:10
@R0n12
Copy link
Contributor Author

R0n12 commented Feb 26, 2024

Will start a new branch and PR with all these changes, current state looks kinda messy.

@Quentin-Anthony
Copy link
Member

Quentin-Anthony commented Feb 29, 2024

Closing in anticipation of the clean PR

@R0n12 R0n12 deleted the lang/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.

Officially Support AMD GPUs
5 participants