Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/129663
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (3 Unrelated Failures)As of commit 2863ae2 with merge base 356f14e ( FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
shunting314
left a comment
There was a problem hiding this comment.
Looks good. Can accept after you rebase and make the CI clean.
| and device_prop.type == ["cuda", "hip"] | ||
| and device_prop.major | ||
| and device_prop.major >= 8 | ||
| and (device_prop.major >= 8 or torch.version.hip) |
There was a problem hiding this comment.
Why is it not enough to just check device_prop.major ?
There was a problem hiding this comment.
The device_prop.major >=8 is CUDA specific, so this was a just a simple way to conditionalize out this restriction for ROCm. Perhaps if(not torch.version.hip and device_prop.major >=8) reads better though.
I will consult if we should have some similar restriction on ROCm side.
There was a problem hiding this comment.
Hey @shunting314, ready for review now, we are green any other comments or are we happy to close this?
|
Needs a rebase |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
3a2e274 to
10f5477
Compare
|
Hey @shunting314 any more comments or are we good to merge? We already have some approval so I'll give it a day or so to see if you have any further comments before merging |
|
@pytorchbot merge |
|
@pytorchbot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
|
Successfully rebased |
be471e3 to
2863ae2
Compare
|
@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 jobs have failed, first few of them are: Meta Internal-Only Changes Check Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -f "failures are flaky internal diff abandoned" |
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 |
…orch#129663) As of ROCm 6.1 [hipDeviceProp_t::regsPerMultiprocessor](https://rocm.docs.amd.com/projects/HIP/en/latest/doxygen/html/structhip_device_prop__t.html#a7390d5b180d63978c81aa971060270b4) is now available allowing us to enable this attribute on ROCm. ``` >>> torch.cuda.get_device_properties(0) _CudaDeviceProperties(name='AMD Instinct MI250X/MI250', major=9, minor=0, gcnArchName='gfx90a:sramecc+:xnack-', total_memory=65520MB, multi_processor_count=104) >>> torch.cuda.get_device_properties(0).regs_per_multiprocessor 65536 ``` With https://github.com/triton-lang/triton/pull/3962we can extract n_regs and n_spells from a triton binary with AMD backend allowing us to enable inductor's dynamic_rblock_scaling on ROCm initially implemented in pytorch#115094 Leaving this in draft until following PRs have landed: - pytorch#129361 to bump the triton commit pin - pytorch#128449 to allow us to grab warp_size from device properties instead of hard coding 64 on ROCm. Pull Request resolved: pytorch#129663 Approved by: https://github.com/jansel, https://github.com/shunting314
As of ROCm 6.1 hipDeviceProp_t::regsPerMultiprocessor is now available allowing us to enable this attribute on ROCm.
With https://github.com/triton-lang/triton/pull/3962we can extract n_regs and n_spells from a triton binary with AMD backend allowing us to enable inductor's dynamic_rblock_scaling on ROCm initially implemented in #115094
Leaving this in draft until following PRs have landed:
cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @hongxiayang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang