-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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,11 @@ | ||
#! /usr/bin/env bash | ||
set -e | ||
|
||
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'ndk-bundle' | ||
nproc=$(ci/get_cores.sh) | ||
|
||
mkdir build_dabnn && cd build_dabnn | ||
cmake -DCMAKE_TOOLCHAIN_FILE=$ANDROID_HOME/ndk-bundle/build/cmake/android.toolchain.cmake -DANDROID_PLATFORM=android-21 -DANDROID_ABI="armeabi-v7a with NEON" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release .. | ||
cmake --build . -- -j$nproc | ||
cd - | ||
|
This file contains 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 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,25 @@ | ||
#! /usr/bin/env bash | ||
set -e | ||
|
||
export TERM=xterm | ||
|
||
echo "y" | $ANDROID_HOME/tools/bin/sdkmanager --install 'system-images;android-25;google_apis;armeabi-v7a' | ||
|
||
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n android_emulator -k 'system-images;android-25;google_apis;armeabi-v7a' --force | ||
|
||
echo "Starting emulator" | ||
|
||
# Start emulator in background | ||
nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -no-snapshot -no-audio & | ||
|
||
# start server in advance, so that the result of watch will only change when device gets online | ||
$ANDROID_HOME/platform-tools/adb start-server | ||
|
||
watch -g -n 1 '$ANDROID_HOME/platform-tools/adb devices | grep -c device$' | ||
|
||
echo "Emulator is online" | ||
|
||
$ANDROID_HOME/platform-tools/adb devices | ||
|
||
echo "Emulator started" | ||
|
This file contains 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,9 @@ | ||
steps: | ||
- bash: ci/adb_push_and_run.sh build_dabnn/tests/bconv_test | ||
displayName: Binary Conv Test | ||
- bash: ci/adb_push_and_run.sh build_dabnn/tests/bgemm_test | ||
displayName: Binary Gemm Test | ||
- bash: ci/download_models.sh | ||
displayName: Download Models | ||
- bash: ci/adb_push_and_run.sh build_dabnn/tests/net_test | ||
displayName: Model Test |