-
Notifications
You must be signed in to change notification settings - Fork 7k
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
setup.py: fix ROCm build #7573
setup.py: fix ROCm build #7573
Conversation
Hi @justinkb! 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@meta.com. Thanks! |
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.
Change looks ok to me, though I don't really know much about ROCm platform, but it does not affect others, and from that perspective it's fine.
@justinkb please sign CLA and than it's ready to go
You can merge this as-is, but someone from our pytorch team will take a deeper look at torchvision to make sure its doing the right thing for ROCm builds. I'm concerned that the globbing might be picking up other unwanted files from "cuda" and not the hipified ones. |
I signed the CLA, guess the bot has a delay on rechecking ;-) |
What globbing are you referring to? I don't see any for Lines 327 to 332 in 078959f
Lines 129 to 130 in 078959f
Did you mean Edit: 🤦 Yes, we are using |
@jeffdaily you seem to be correct in that intuition. we need another fix to fully tackle the rocm issues. shall I squash both into this PR? edit: done so now. there may be other instances in setup.py where rocm stuff isn't correctly done, I will investigate further, but this at least fixes the image extension so torchvision can actually be imported. |
Merged, thank you very much for your contribution. |
Reviewed By: vmoens Differential Revision: D45903813 fbshipit-source-id: 1fb0458d24833caa8cf587a0fbd47a9e998ceea2
Fixes #7561
cc @jeffdaily @jithunnair-amd