forked from mozilla/DeepSpeech
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mozilla#3292: Linux debug builds
- Loading branch information
Alexandre Lissy
committed
Oct 1, 2020
1 parent
f20f939
commit 544d04c
Showing
24 changed files
with
467 additions
and
25 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
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,21 @@ | ||
build: | ||
template_file: linux-opt-base.tyml | ||
dependencies: | ||
- "swig-linux-amd64" | ||
- "node-gyp-cache" | ||
- "pyenv-linux-amd64" | ||
- "tf_android-arm64-dbg" | ||
routes: | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.android-arm64-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.android-arm64-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.android-arm64-dbg.${event.head.sha}" | ||
tensorflow: ${system.tensorflow_dbg.android_arm64.url} | ||
scripts: | ||
setup: "taskcluster/tc-true.sh" | ||
build: "taskcluster/android-build-dbg.sh arm64-v8a" | ||
package: "taskcluster/android-package.sh arm64-v8a" | ||
nc_asset_name: "native_client.arm64.cpu.android.tar.xz" | ||
workerType: "${docker.dsBuild}" | ||
metadata: | ||
name: "DeepSpeech Android ARM64 debug" | ||
description: "Building DeepSpeech for Android ARM64, debug version" |
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,20 @@ | ||
build: | ||
template_file: linux-opt-base.tyml | ||
dependencies: | ||
- "swig-linux-amd64" | ||
- "node-gyp-cache" | ||
- "pyenv-linux-amd64" | ||
- "tf_android-armv7-dbg" | ||
routes: | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.android-armv7-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.android-armv7-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.android-armv7-dbg.${event.head.sha}" | ||
tensorflow: ${system.tensorflow_dbg.android_armv7.url} | ||
scripts: | ||
build: "taskcluster/android-build-dbg.sh armeabi-v7a" | ||
package: "taskcluster/android-package.sh armeabi-v7a" | ||
nc_asset_name: "native_client.armv7.cpu.android.tar.xz" | ||
workerType: "${docker.dsBuild}" | ||
metadata: | ||
name: "DeepSpeech Android ARMv7 debug" | ||
description: "Building DeepSpeech for Android ARMv7, debug version" |
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,35 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
arm_flavor=$1 | ||
|
||
source $(dirname "$0")/tc-tests-utils.sh | ||
|
||
source $(dirname "$0")/tf_tc-vars.sh | ||
|
||
BAZEL_TARGETS=" | ||
//native_client:libdeepspeech.so | ||
" | ||
|
||
if [ "${arm_flavor}" = "armeabi-v7a" ]; then | ||
LOCAL_ANDROID_FLAGS="${BAZEL_ANDROID_ARM_FLAGS}" | ||
fi | ||
|
||
if [ "${arm_flavor}" = "arm64-v8a" ]; then | ||
LOCAL_ANDROID_FLAGS="${BAZEL_ANDROID_ARM64_FLAGS}" | ||
fi | ||
|
||
if [ "${arm_flavor}" = "x86_64" ]; then | ||
LOCAL_ANDROID_FLAGS="--config=android --cpu=x86_64 --action_env ANDROID_NDK_API_LEVEL=21 --cxxopt=-std=c++14 --copt=-D_GLIBCXX_USE_C99" | ||
fi | ||
|
||
BAZEL_BUILD_FLAGS="--define=runtime=tflite ${LOCAL_ANDROID_FLAGS} ${BAZEL_EXTRA_FLAGS}" | ||
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" | ||
SYSTEM_TARGET= | ||
SYSTEM_RASPBIAN= | ||
|
||
do_bazel_build "dbg" | ||
|
||
export EXTRA_LOCAL_CFLAGS="-ggdb" | ||
do_deepspeech_ndk_build "${arm_flavor}" |
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
source $(dirname "$0")/tc-tests-utils.sh | ||
|
||
source $(dirname "$0")/tf_tc-vars.sh | ||
|
||
BAZEL_TARGETS=" | ||
//native_client:libdeepspeech.so | ||
" | ||
|
||
BAZEL_BUILD_FLAGS="${BAZEL_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS}" | ||
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" | ||
SYSTEM_TARGET=rpi3-armv8 | ||
SYSTEM_RASPBIAN=/tmp/multistrap-armbian64-buster | ||
|
||
maybe_install_xldd | ||
|
||
do_bazel_build "dbg" | ||
|
||
export EXTRA_LOCAL_CFLAGS="-ggdb" | ||
do_deepspeech_binary_build |
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,27 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
runtime=$1 | ||
|
||
source $(dirname "$0")/tc-tests-utils.sh | ||
|
||
source $(dirname "$0")/tf_tc-vars.sh | ||
|
||
BAZEL_TARGETS=" | ||
//native_client:libdeepspeech.so | ||
" | ||
|
||
if [ "${runtime}" = "tflite" ]; then | ||
BAZEL_BUILD_TFLITE="--define=runtime=tflite" | ||
fi; | ||
|
||
BAZEL_BUILD_FLAGS="${BAZEL_BUILD_TFLITE} ${BAZEL_OPT_FLAGS} ${BAZEL_EXTRA_FLAGS}" | ||
|
||
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" | ||
SYSTEM_TARGET=host | ||
|
||
do_bazel_build "dbg" | ||
|
||
export EXTRA_LOCAL_CFLAGS="-ggdb" | ||
do_deepspeech_binary_build |
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 |
---|---|---|
|
@@ -32,4 +32,3 @@ else | |
fi | ||
|
||
do_deepspeech_nodejs_build | ||
|
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 @@ | ||
build: | ||
template_file: linux-opt-base.tyml | ||
dependencies: | ||
- "swig-linux-amd64" | ||
- "node-gyp-cache" | ||
- "pyenv-linux-amd64" | ||
- "tf_linux-amd64-cpu_gcc9" | ||
routes: | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.cpu-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.cpu-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.cpu-dbg.${event.head.sha}" | ||
tensorflow: ${system.tensorflow_gcc9.linux_amd64_cpu.url} | ||
docker_image: "ubuntu:20.04" | ||
system_config: | ||
> | ||
${deepspeech.packages_bionic.apt} | ||
scripts: | ||
setup: "taskcluster/tc-true.sh" | ||
build: "taskcluster/host-build-dbg.sh" | ||
package: "taskcluster/package.sh" | ||
nc_asset_name: "native_client.amd64.cpu.linux.tar.xz" | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "DeepSpeech Linux AMD64 CPU Debug" | ||
description: "Building DeepSpeech for Linux/AMD64, CPU only, debug version" |
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 @@ | ||
build: | ||
template_file: linux-opt-base.tyml | ||
dependencies: | ||
- "swig-linux-amd64" | ||
- "node-gyp-cache" | ||
- "pyenv-linux-amd64" | ||
- "tf_linux-amd64-cpu_gcc9" | ||
routes: | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.tflite-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.tflite-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.tflite-dbg.${event.head.sha}" | ||
tensorflow: ${system.tensorflow_gcc9.linux_amd64_cpu.url} | ||
docker_image: "ubuntu:20.04" | ||
system_config: | ||
> | ||
${deepspeech.packages_bionic.apt} | ||
scripts: | ||
setup: "taskcluster/tc-true.sh" | ||
build: "taskcluster/host-build-dbg.sh tflite" | ||
package: "taskcluster/package.sh" | ||
nc_asset_name: "native_client.amd64.tflite.linux.tar.xz" | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "DeepSpeech Linux AMD64 TFLite debug" | ||
description: "Building DeepSpeech for Linux/AMD64, TFLite, debug version" |
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,30 @@ | ||
build: | ||
template_file: linux-opt-base.tyml | ||
dependencies: | ||
- "swig-linux-amd64" | ||
- "node-gyp-cache" | ||
- "pyenv-linux-amd64" | ||
- "tf_linux-arm64-cpu-dbg" | ||
routes: | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.arm64-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.arm64-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.arm64-dbg.${event.head.sha}" | ||
## multistrap 2.2.0-ubuntu1 is broken in 14.04: https://bugs.launchpad.net/ubuntu/+source/multistrap/+bug/1313787 | ||
system_setup: | ||
> | ||
apt-get -qq -y install gdebi git pixz && | ||
wget http://mirrors.kernel.org/ubuntu/pool/universe/m/multistrap/multistrap_2.2.0ubuntu2_all.deb -O /tmp/multistrap_2.2.0ubuntu2_all.deb && | ||
echo "y" | gdebi /tmp/multistrap_2.2.0ubuntu2_all.deb | ||
system_config: | ||
> | ||
multistrap -d /tmp/multistrap-armbian64-buster/ -f ${system.homedir.linux}/DeepSpeech/ds/native_client/multistrap_armbian64_buster.conf | ||
tensorflow: ${system.tensorflow_dbg.linux_arm64.url} | ||
scripts: | ||
setup: "taskcluster/tc-true.sh" | ||
build: "taskcluster/arm64-build-dbg.sh" | ||
package: "taskcluster/package.sh" | ||
nc_asset_name: "native_client.arm64.cpu.linux.tar.xz" | ||
workerType: "${docker.dsBuild}" | ||
metadata: | ||
name: "DeepSpeech Linux ARM64 Cortex-A53 CPU debug" | ||
description: "Building DeepSpeech for Linux ARM64 Cortex-A53, CPU only, debug version" |
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,30 @@ | ||
build: | ||
template_file: linux-opt-base.tyml | ||
dependencies: | ||
- "swig-linux-amd64" | ||
- "node-gyp-cache" | ||
- "pyenv-linux-amd64" | ||
- "tf_linux-rpi3-cpu-dbg" | ||
routes: | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.arm-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.arm-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.arm-dbg.${event.head.sha}" | ||
## multistrap 2.2.0-ubuntu1 is broken in 14.04: https://bugs.launchpad.net/ubuntu/+source/multistrap/+bug/1313787 | ||
system_setup: | ||
> | ||
apt-get -qq -y install gdebi git pixz && | ||
wget http://mirrors.kernel.org/ubuntu/pool/universe/m/multistrap/multistrap_2.2.0ubuntu2_all.deb -O /tmp/multistrap_2.2.0ubuntu2_all.deb && | ||
echo "y" | gdebi /tmp/multistrap_2.2.0ubuntu2_all.deb | ||
system_config: | ||
> | ||
multistrap -d /tmp/multistrap-raspbian-buster/ -f ${system.homedir.linux}/DeepSpeech/ds/native_client/multistrap_raspbian_buster.conf | ||
tensorflow: ${system.tensorflow.linux_armv7.url} | ||
scripts: | ||
setup: "taskcluster/tc-true.sh" | ||
build: "taskcluster/rpi3-build-dbg.sh" | ||
package: "taskcluster/package.sh" | ||
workerType: "${docker.dsBuild}" | ||
nc_asset_name: "native_client.rpi3.cpu.linux.tar.xz" | ||
metadata: | ||
name: "DeepSpeech Linux RPi3/ARMv7 CPU debug" | ||
description: "Building DeepSpeech for Linux RPi3 ARMv7, CPU only, debug version" |
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -xe | ||
|
||
source $(dirname "$0")/tc-tests-utils.sh | ||
|
||
source $(dirname "$0")/tf_tc-vars.sh | ||
|
||
BAZEL_TARGETS=" | ||
//native_client:libdeepspeech.so | ||
" | ||
|
||
BAZEL_BUILD_FLAGS="${BAZEL_ARM_FLAGS} ${BAZEL_EXTRA_FLAGS}" | ||
BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" | ||
SYSTEM_TARGET=rpi3 | ||
SYSTEM_RASPBIAN=/tmp/multistrap-raspbian-buster | ||
|
||
maybe_install_xldd | ||
|
||
do_bazel_build "dbg" | ||
|
||
export EXTRA_LOCAL_CFLAGS="-ggdb" | ||
do_deepspeech_binary_build |
Oops, something went wrong.