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

[android][circle_ci] android build and nightly publish jobs #3679

Merged
merged 3 commits into from
May 10, 2021

Conversation

IvanKobzarev
Copy link
Contributor

@IvanKobzarev IvanKobzarev commented Apr 16, 2021

Introducing 2 additional jobs:
binary_libtorchvision_ops_android - building torchvision_ops for android on every PR

nightly-binary-libtorchvision_ops-android-upload - publish nightlies to sonatype

Both jobs use docker image circleci/android:api-29-ndk with preinstalled android sdk/ndk.
Installing gradle from pytorch aws (just unpacking)

Jobs with default resources failed, so changed:

gradle jvm args: org.gradle.jvmargs=-Xmx12g
resource_class: xlarge

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

This looks great, thanks a lot for the PR @IvanKobzarev !

I have one question regarding versioning, otherwise the PR is good to merge.

implementation 'org.pytorch:pytorch_android:1.8.0-SNAPSHOT'
implementation 'org.pytorch:pytorch_android_torchvision:1.8.0-SNAPSHOT'
implementation "org.pytorch:pytorch_android:$pytorchAndroidVersion"
implementation "org.pytorch:pytorch_android_torchvision:$pytorchAndroidVersion"
Copy link
Member

Choose a reason for hiding this comment

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

I think we should discuss if we would want torchvision android artifacts to be versioned with the same version as PyTorch or with the version of torchvision (which is different than Pytorch versions).

In one hand, having the same version as PyTorch makes it easier for matching dependencies, on the other hand there are discrepancies wrt what we ship in the Python side. Thoughts?

@fmassa
Copy link
Member

fmassa commented May 10, 2021

Let's get this merged to unblock, and then maybe revisit the versioning in a follow-up PR

@fmassa fmassa merged commit d6fee5a into pytorch:master May 10, 2021
facebook-github-bot pushed a commit that referenced this pull request May 17, 2021
Summary: Co-authored-by: Francisco Massa <fvsmassa@gmail.com>

Reviewed By: datumbox

Differential Revision: D28473323

fbshipit-source-id: 92bb8e34aeedf705f6217bd467c84b27e89145bc
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.

4 participants