Skip to content
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

M1 fixes cherry #6167

Merged
merged 16 commits into from Jun 15, 2022
Merged

M1 fixes cherry #6167

merged 16 commits into from Jun 15, 2022

Conversation

atalman
Copy link
Contributor

@atalman atalman commented Jun 14, 2022

M1 cherry picks creating for CI signal

malfet and others added 10 commits June 14, 2022 13:29
* [BE] Unify version computation

Instead of hardcoding dev version in various script, use one from
`version.txt` if `setup_build_version` is called without arguments

Also, pass `--pre` option to M1 build/test pip install commands to build
TorchVision against nightly pytorch

* Pin torchvision dependency to a specific pytorch version
Explicitly set PATH to point to `conda` binary, otherwise libjpeg detection logic does not work
Pin libjpeg to the same version on x86 and m1
Add simple tests that jpeg can be decoded by a generated wheel
* Add M1 testing job

* libjpeg -> jpeg<=9b in test-m1.yml

* Added export PATH=~/miniconda3/bin... from 6122

* Tests were OK, let's see if we can remove the pinning
Clean up Conda build folder before every run
Enable artifact upload to GitHub for every workflow run, but upload to Conda/S3 only on nightly pushes

Test plan: `conda install -c pytorch-nightly torchvision; python -c "import torchvision;print(torchvision.io.read_image('hummingbird.jpg').shape)"`
By passing `--pre` option to `pip install`, otherwise torchvision were always tested against last PyTorch release
* Adding tagged builds

* Testing

* Testing

* Testing

* Testing

* Adding conda builds
s#ref/heads/#refs/heads/#

I should have noticed it while copy-n-pasting the condition. Unfortunately there are no way to test is other than in prod, but nightly builds are still not getting pushed, see https://github.com/pytorch/vision/runs/6860407007?check_suite_focus=true for example
@datumbox
Copy link
Contributor

As discussed offline, this is a potential duplicate of #6112

Testing

Testing

Testing

testing

Testing

Testing

Testing

Testing

Testing

Testing

Testing
Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks @atalman!

@NicolasHug
Copy link
Member

Thanks @atalman

@NicolasHug NicolasHug merged commit 94c81c2 into pytorch:release/0.13 Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants