-
Notifications
You must be signed in to change notification settings - Fork 4.2k
[WIP] NNAPI EP Update #1540
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
Merged
Merged
[WIP] NNAPI EP Update #1540
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bd1f7fe
Add new android ci yml
daquexian e1e2e6d
Clone submodules manually, build with dnnlibrary
daquexian c902f1a
Disable dev mode for android
daquexian cb9d0e5
Add nnapi support in perftest
daquexian e9a3016
Build x86_64 in CI
daquexian b998468
Install cmake 3.14.4
daquexian 7f60b5f
Use watch to wait emulator online
daquexian 0ca27a5
Install coreutils for realpath
daquexian 62623f5
Disable openmp
daquexian 5e7aeac
Revert 'use watch to wait emulator online'
daquexian 4f14dc1
alias timeout=gtimeout
daquexian 5165c21
Relax timeout from 60 to 180s
daquexian ce983a7
disable onnx tests for the time being
daquexian 5eb4654
no need to set TERM=xterm anymore, it is only needed for watch
daquexian 68fcf53
Install cmake 3.13.2, consistent with other ci
daquexian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
tools/ci_build/github/azure-pipelines/android-arm64-crosscompile-ci-pipeline.yml
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
tools/ci_build/github/azure-pipelines/android-x86_64-crosscompile-ci-pipeline.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| jobs: | ||
| - job: Android_CI | ||
| pool: | ||
| vmImage: 'macOS-10.14' | ||
| steps: | ||
| # cmake 3.15 breaks Android NDK https://gitlab.kitware.com/cmake/cmake/issues/19515. pip install cmake==3.13.2 installs 3.12.2 | ||
| - script: pip install cmake==3.13.2.post1 && alias cmake=/usr/local/bin/cmake && cmake --version && brew install coreutils && alias time=gtimeout | ||
| displayName: Install cmake 3.14 and coreutils | ||
| - script: 'git submodule update --init --recursive --progress' | ||
| displayName: Clone submodules | ||
| - script: echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'ndk-bundle' | ||
| displayName: Install Android NDK | ||
| - script: tools/ci_build/build.py --android --build_dir build --android_ndk $ANDROID_HOME/ndk-bundle --android_abi=x86_64 --skip_submodule_sync --parallel --use_dnnlibrary | ||
| displayName: Build and Test on Android Emulator | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For building the android package on Mac? Why do we need to test it? Why not using Linux instead?
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.
It seems macos has better Android emulator support: https://github.com/microsoft/azure-pipelines-image-generation/blob/master/images/macos/macos-10.14-Readme.md, and since we are doing cross-compile via official Android NDK, macos or linux doesn't matter a lot.