-
Notifications
You must be signed in to change notification settings - Fork 24.2k
[ROCm] remove caffe2 from hipify #137157
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
[ROCm] remove caffe2 from hipify #137157
Conversation
- Remove all "MasqueradingAsCUDA" files and classes. - Do not rename "CUDA" classes to "HIP".
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/137157
Note: Links to docs will display an error until the docs builds have been completed. ❌ 11 New Failures, 4 Unrelated FailuresAs of commit 765a9fd with merge base bcaa0f5 ( NEW FAILURES - The following jobs have failed:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs 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. |
c5758b9
to
8903858
Compare
@albanD will need your help with the LOC PR sanity check. In the cuda_to_hip_mappings file we removed 2 fields from each mapping. The changes were all automated using a script so nothing was missed. But it results in a lot of changed lines. |
@albanD the new cuda_to_hip_mappings.py file was generated using this script. https://gist.github.com/jeffdaily/be8961a5ee180ff2ec3dc2da6db0461f |
Skipping sanity check since this is generated code. Thanks for the details! |
@pytorchmergebot 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 |
@pytorchmergebot merge -f "Unrelated failures." |
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 |
@pytorchbot revert -m "this is breaking internal where we still use caffe2" |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot revert -m "this is breaking internal where we still use caffe2" -c nosignal |
@pytorchbot successfully started a revert job. Check the current status here. |
This reverts commit 40d8260. Reverted #137157 on behalf of https://github.com/xw285cornell due to this is breaking internal where we still use caffe2 ([comment](#137157 (comment)))
@jeffdaily your PR has been successfully reverted. |
@@ -65,7 +64,7 @@ def __str__(self): | |||
'preprocess_file_and_save_result', 'compute_stats', 'add_dim3', 'processKernelLaunches', 'find_closure_group', | |||
'find_bracket_group', 'find_parentheses_group', 'replace_math_functions', 'hip_header_magic', 'replace_extern_shared', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace_extern_shared
definition should be marked deprecated and the following lines should be deleted:
pytorch/torch/utils/hipify/hipify_python.py
Line 907 in 765a9fd
# Replace the extern __shared__ |
@@ -619,7 +613,7 @@ def is_out_of_place(rel_filepath): | |||
return True | |||
|
|||
|
|||
# Keep this synchronized with includes/ignores in build_amd.py | |||
# deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@malfet These are added to keep BC linter happy. When are we allowed to get rid of them? Is there a deprecation policy written out somewhere?
@xw285cornell has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hi, This PR as it currently stands breaks my fp8 MI300X internal training codebase & breaks cc: @hliuca |
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
NOTE: Also need to merge corresponding hipify_torch PR to be in sync with this PR if/when it is merged again: ROCm/hipify_torch#73
cc @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd @albanD @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @aakhundov