10000 [ROCm] Update CUDAPluggableAllocator.h by amd-sriram · Pull Request #152179 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[ROCm] Update CUDAPluggableAllocator.h #152179

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

Conversation

amd-sriram
Copy link
Contributor
@amd-sriram amd-sriram commented Apr 25, 2025

Altering the flag to use the correct streamType in CUDAPluggableAllocator class for ROCm gpu. The flag TORCH_HIP_VERSION does not work for ROCm as intended. This flag is replaced with USE_ROCM. This is impacting Distributed Fused Adam in Rocm/APEX when using nccl_ub feature. This has been tested with rocm/apex.

See PR ROCm/apex#184

Related Commit - ROCm/apex@6fd8b50
ROCm@39a799f - rocm/pytorch [release/2.7]

cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @jeffdaily @sunway5 8000 13 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168 @gujinghui @PenghuiCheng @jianyuh @min-jean-cho @yanbing-j @Guobing-Chen @Xia-Weiwen @snadampal @ezyang @SherlockNoMad @EikanWang @wenzhe-nrv @voznesenskym @penguinwu @zhuhaozhe @blzheng @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

)

Altering the flag to use the correct streamType for
CUDAPluggableAllocator. This is impacting Distributed Fused Adam in
Rocm/APEX.

See PR ROCm/apex#184

Related Issue : https://ontrack-internal.amd.com/browse/SWDEV-519796
Copy link
pytorch-bot bot commented Apr 25, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/152179

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added module: cpu CPU specific problem (e.g., perf, algorithm) module: dynamo module: inductor module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration module: rocm AMD GPU support for Pytorch oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: quantization release notes category release notes: releng release notes category release notes: inductor (aoti) labels Apr 25, 2025
@amd-sriram amd-sriram changed the base branch from orig/release/2.7 to release/2.7 April 25, 2025 10:11
@amd-sriram amd-sriram marked this pull request as ready for review April 25, 2025 10:12
@amd-sriram
Copy link
Contributor Author

@pytorchbot label "release notes: rocm"

@pytorch-bot pytorch-bot bot added the release notes: rocm mandatorylabel label Apr 25, 2025
@amd-sriram
Copy link
Contributor Author

@pytorchbot label "ciflow/periodic"

Copy link
pytorch-bot bot commented Apr 25, 2025

To add these label(s) (ciflow/periodic) to the PR, please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@amd-sriram amd-sriram marked this pull request as draft April 25, 2025 10:22
@amd-sriram amd-sriram closed this Apr 25, 2025
pytorchmergebot pushed a commit that referenced this pull request May 22, 2025
Added unit test to include the cuda_pluggable allocator and replicate the apex setup.py to build nccl_allocator extension

This test to check if this commit #152179 helps to build the cuda pluggable allocator in Rocm/Apex

Pull Request resolved: #154041
Approved by: https://github.com/atalman, https://github.com/jeffdaily

Co-authored-by: Jithun Nair <jithun.nair@amd.com>
pytorchbot pushed a commit that referenced this pull request May 22, 2025
Added unit test to include the cuda_pluggable allocator and replicate the apex setup.py to build nccl_allocator extension

This test to check if this commit #152179 helps to build the cuda pluggable allocator in Rocm/Apex

Pull Request resolved: #154041
Approved by: https://github.com/atalman, https://github.com/jeffdaily

Co-authored-by: Jithun Nair <jithun.nair@amd.com>
(cherry picked from commit c2660d2)
atalman pushed a commit that referenced this pull request May 22, 2025
[ROCm] Added unit test to test the cuda_pluggable allocator  (#154041)

Added unit test to include the cuda_pluggable allocator and replicate the apex setup.py to build nccl_allocator extension

This test to check if this commit #152179 helps to build the cuda pluggable allocator in Rocm/Apex

Pull Request resolved: #154041
Approved by: https://github.com/atalman, https://github.com/jeffdaily


(cherry picked from commit c2660d2)

Co-authored-by: skishore <sriramkumar.kishorekumar@amd.com>
Co-authored-by: Jithun Nair <jithun.nair@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fx module: cpu CPU specific problem (e.g., perf, algorithm) module: dynamo module: inductor module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration module: rocm AMD GPU support for Pytorch oncall: distributed Add this issue/PR to distributed oncall triage queue open source release notes: inductor (aoti) release notes: quantization release notes category release notes: releng release notes category release notes: rocm mandatorylabel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0