Skip to content

Conversation

@dreiss
Copy link
Contributor

@dreiss dreiss commented Oct 9, 2019

Stack from ghstack:

This adds a new gradle subproject at pytorch_android/host and tweaks
the top-level build.gradle to only run some Android bits on the other
projects.

Referencing Java sources from inside the host directory feels a bit
hacky, but getting host and Android Gradle builds to coexist in the same
directory hit several roadblocks. We can try a bigger refactor to
separate the Android-specific and non-Android-specific parts of the
code, but that seems overkill at this point for 4 Java files.

This doesn't actually run without some local changes to fbjni, but I
want to get the files landed to avoid unnecessary merge conflicts.

Differential Revision: D18210317

This adds a new gradle subproject at pytorch_android/host and tweaks
the top-level build.gradle to only run some Android bits on the other
projects.

Referencing Java sources from inside the host directory feels a bit
hacky, but getting host and Android Gradle builds to coexist in the same
directory hit several roadblocks.  We can try a bigger refactor to
separate the Android-specific and non-Android-specific parts of the
code, but that seems overkill at this point for 4 Java files.

This doesn't actually run without some local changes to fbjni, but I
want to get the files landed to avoid unnecessary merge conflicts.
@nairbv
Copy link
Collaborator

nairbv commented Oct 10, 2019

some local changes to fbjni

what are the required changes?

@dreiss
Copy link
Contributor Author

dreiss commented Oct 11, 2019

some local changes to fbjni

what are the required changes?

  • Updating to latest fbjni, which includes a minor API change and host build support in CMake.
  • Getting fbjni published in Maven and updating our gradle file to point to the right jar.

This adds a new gradle subproject at pytorch_android/host and tweaks
the top-level build.gradle to only run some Android bits on the other
projects.

Referencing Java sources from inside the host directory feels a bit
hacky, but getting host and Android Gradle builds to coexist in the same
directory hit several roadblocks.  We can try a bigger refactor to
separate the Android-specific and non-Android-specific parts of the
code, but that seems overkill at this point for 4 Java files.

This doesn't actually run without some local changes to fbjni, but I
want to get the files landed to avoid unnecessary merge conflicts.

Differential Revision: [D18210317](https://our.internmc.facebook.com/intern/diff/D18210317)
@facebook-github-bot
Copy link
Contributor

@dreiss merged this pull request in c9423c3.

@facebook-github-bot facebook-github-bot deleted the gh/dreiss/7/head branch November 2, 2019 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: android Related to Android support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants