To add hipify_torch as a submodule in pytorch/third_party #74704
To add hipify_torch as a submodule in pytorch/third_party #74704bmedishe wants to merge 59 commits intopytorch:masterfrom
Conversation
|
Hi @bmedishe! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 2765b91 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
|
cc @shintaro-iwasaki Can you please take a look? |
|
@shintaro-iwasaki has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
1 similar comment
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
@bmedishe your PR has been successfully merged. |
|
Hey @bmedishe. |
Summary: `hipify_torch` as a submodule in `pytorch/third_party` Pull Request resolved: #74704 Reviewed By: samdow Differential Revision: D36294553 Pulled By: shintaro-iwasaki fbshipit-source-id: 0231f06ed78888c920c01aa56653a082c20f22d7
|
@malfet I can't build torchvision after this PR, got Traceback (most recent call last):
File "setup.py", line 12, in <module>
from torch.utils.cpp_extension import BuildExtension, CppExtension, CUDAExtension, CUDA_HOME
File "/opt/pytorch/pytorch/torch/utils/cpp_extension.py", line 19, in <module>
from .hipify import hipify_python # type: ignore[import]
ModuleNotFoundError: No module named 'torch.utils.hipify' |
|
@pytorchbot revert -m "broke torchvision" -c weird |
|
@pytorchbot successfully started a revert job. Check the current status here |
|
@bmedishe your PR has been successfully reverted. |
…4704)" This reverts commit 93b0fec. Reverted #74704 on behalf of https://github.com/malfet due to broke torchvision
|
Maybe it was reflected to the GitHub side. I am sorry. @jithunnair-amd when you have a chance to create a PR next time, could add the following in According to @xwang233's report, the following should address the issue. try:
from .hipify import hipify_python # type: ignore[import]
from .hipify.hipify_python import GeneratedFileCleaner # type: ignore[import]
except ModuleNotFoundError:
hipify_python = None # type: ignore[assignment]
GeneratedFileCleaner = None # type: ignore[assignment] |
@shintaro-iwasaki I pushed the above suggested change |
@xwang233 could you kindly mention reproduction steps for this error ? I could build torchvision after building pytorch from the above branch |
|
@shintaro-iwasaki @xwang233 I think the key here is that the way you are building torchvision, it is trying to pick up pytorch from the source code path ( |
|
We use |
) `hipify_torch` as a submodule in `pytorch/third_party` Pull Request resolved: pytorch#74704 Approved by: https://github.com/jeffdaily, https://github.com/malfet
…torch#74704)" This reverts commit 93b0fec. Reverted pytorch#74704 on behalf of https://github.com/malfet due to broke torchvision
Hmm, does it mean that |
|
@shintaro-iwasaki Thank you for the suggestion. However, that won't work when the code tries to call
@malfet Yes. We are working on an alternate PR so that the develop path would also work. Please review it here: fbc724b |
) `hipify_torch` as a submodule in `pytorch/third_party` Pull Request resolved: pytorch#74704 Approved by: https://github.com/jeffdaily, https://github.com/malfet
…torch#74704)" This reverts commit 9e8bb45. Reverted pytorch#74704 on behalf of https://github.com/malfet due to broke torchvision
hipify_torchas a submodule inpytorch/third_party