Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/144777
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 8 Pending, 1 Unrelated FailureAs of commit 8a7d48e with merge base 19c3ba4 ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@jeffdaily Here is the PR to fix the issue we were working on on friday. This PR needs all the relevant CI labels |
| ) | ||
|
|
||
|
|
||
| def add_make_kernel_pt(line: str) -> str: |
There was a problem hiding this comment.
oh wow! This is actually patching a ck header file in the pytorch build file? That doesn't sound a good idea. Can we add this into CK itself?
| // Added by hipification to become a no-op on non supported architectures | ||
| template <int MaxThreadPerBlock, int MinBlockPerCu, typename Kernel, typename... Args> | ||
| #if CK_TILE_USE_LAUNCH_BOUNDS | ||
| __launch_bounds__(MaxThreadPerBlock, MinBlockPerCu) |
There was a problem hiding this comment.
we need to throw an error rather than just silent passing.
xw285cornell
left a comment
There was a problem hiding this comment.
this should be a lot better now, let me test it out internally.
| @@ -201,6 +201,7 @@ def remove_hcc(line: str) -> str: | |||
| sources.write(line) | |||
| print(f"{hip_platform_file} updated") | |||
|
|
|||
|
|
|||
There was a problem hiding this comment.
I need to rebase the update_ck PR once this is merged. I will make this change in that PR so we don't have to wait for CI on this one again
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
52fc171 to
8a7d48e
Compare
|
@xw285cornell has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
|
@pytorchbot merge -f "merged internally and skip sanity check" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
__gfxXXX__ should only be visible by device code. Move the check to the ck kernel Pull Request resolved: pytorch#144777 Approved by: https://github.com/jeffdaily, https://github.com/xw285cornell, https://github.com/jianyuh
__gfxXXX__ should only be visible by device code. Move the check to the ck kernel Pull Request resolved: pytorch#144777 Approved by: https://github.com/jeffdaily, https://github.com/xw285cornell, https://github.com/jianyuh
The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR pytorch#144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR pytorch#155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR pytorch#187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly.
The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR pytorch#144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR pytorch#155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR pytorch#187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly.
The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR pytorch#144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR pytorch#155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR pytorch#187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly. Fixes pytorch#188113
The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR #144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR #155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR #187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly. Fixes #188113 Pull Request resolved: #188114 Approved by: https://github.com/eellison, https://github.com/alugorey, https://github.com/jeffdaily Co-authored-by: doplxyz <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Jeff Daily <[email protected]>
…h#188114) The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR pytorch#144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR pytorch#155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR pytorch#187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly. Fixes pytorch#188113 Pull Request resolved: pytorch#188114 Approved by: https://github.com/eellison, https://github.com/alugorey, https://github.com/jeffdaily Co-authored-by: doplxyz <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Jeff Daily <[email protected]>
The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR #144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR #155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR #187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly. Fixes #188113 Pull Request resolved: #188114 Approved by: https://github.com/jeffdaily Co-authored-by: doplxyz <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Jeff Daily <[email protected]>
…h#188114) The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR pytorch#144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR pytorch#155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR pytorch#187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly. Fixes pytorch#188113 Pull Request resolved: pytorch#188114 Approved by: https://github.com/eellison, https://github.com/alugorey, https://github.com/jeffdaily Co-authored-by: doplxyz <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Jeff Daily <[email protected]>
…h#188114) The CK Tile FMHA generator already compiles working kernels for gfx12 (--targets=gfx1201 passes through to the kernel template), but two guards prevented them from being used on RDNA4 hardware: 1. launch_kernel_pt.hpp: kentry_pt kernel entry stubs added in PR pytorch#144777 ([ROCm] CK SDPA - Move arch check to CK patch) had a hard-coded whitelist of gfx90a/gfx942/gfx950 (updated for gfx950 in PR pytorch#155103). gfx1200/gfx1201 were never added despite the CK Tile FMHA generator supporting them. 2. Context.cpp: ckSDPASupported() split from ckSupported() in PR pytorch#187267 ([ROCm] Split CK SDPA vs CK GEMM arch gating) only listed gfx942/gfx950. Added gfx1200/gfx1201. Tested on gfx1201 (RX 9070): WITHOUT patch the kernel ASSERTs, WITH patch the kernel executes correctly. Fixes pytorch#188113 Pull Request resolved: pytorch#188114 Approved by: https://github.com/jeffdaily Co-authored-by: doplxyz <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Jeff Daily <[email protected]>
gfxXXX should only be visible by device code. Move the check to the ck kernel
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd @albanD