forked from mozilla/DeepSpeech
-
Notifications
You must be signed in to change notification settings - Fork 0
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 86bba80
Showing
27 changed files
with
534 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_dbg.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_dbg.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,20 @@ | ||
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-x86_64-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.android-x86_64-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.android-x86_64-dbg.${event.head.sha}" | ||
tensorflow: ${system.tensorflow_dbg.android_arm64.url} | ||
scripts: | ||
build: "taskcluster/android-build-dbg.sh x86_64" | ||
package: "taskcluster/android-package.sh x86_64" | ||
nc_asset_name: "native_client.x86_64.cpu.android_dbg.tar.xz" | ||
workerType: "${docker.dsBuild}" | ||
metadata: | ||
name: "DeepSpeech Android x86_64 debug" | ||
description: "Building DeepSpeech for Android x86_64, 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_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/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_ENV_FLAGS="TF_NEED_CUDA=1 ${TF_CUDA_FLAGS}" | ||
BAZEL_BUILD_FLAGS="${BAZEL_CUDA_FLAGS} ${BAZEL_EXTRA_FLAGS} ${BAZEL_OPT_FLAGS}" | ||
SYSTEM_TARGET=host | ||
EXTRA_LOCAL_CFLAGS="" | ||
EXTRA_LOCAL_LDFLAGS="-L${DS_ROOT_TASK}/DeepSpeech/CUDA/lib64/ -L${DS_ROOT_TASK}/DeepSpeech/CUDA/lib64/stubs/ -lcudart -lcuda" | ||
|
||
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_dbg.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,26 @@ | ||
build: | ||
template_file: linux-opt-base.tyml | ||
dependencies: | ||
- "swig-linux-amd64" | ||
- "node-gyp-cache" | ||
- "pyenv-linux-amd64" | ||
- "tf_linux-amd64-gpu_gcc9" | ||
routes: | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.gpu-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.${event.head.branchortag}.${event.head.sha}.gpu-dbg" | ||
- "index.project.deepspeech.deepspeech.native_client.gpu-dbg.${event.head.sha}" | ||
tensorflow: ${system.tensorflow_gcc9.linux_amd64_cuda.url} | ||
docker_image: "ubuntu:20.04" | ||
system_config: | ||
> | ||
${deepspeech.packages_bionic.apt} | ||
maxRunTime: 14400 | ||
scripts: | ||
setup: "taskcluster/tc-true.sh" | ||
build: "taskcluster/cuda-build-dbg.sh" | ||
package: "taskcluster/package.sh" | ||
nc_asset_name: "native_client.amd64.cuda.linux_dbg.tar.xz" | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "DeepSpeech Linux AMD64 CUDA debug" | ||
description: "Building DeepSpeech for Linux/AMD64, CUDA-enabled, 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_dbg.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_dbg.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
Oops, something went wrong.