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
Sep 30, 2020
1 parent
f20f939
commit c8bd91b
Showing
17 changed files
with
277 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
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,22 @@ | ||
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" | ||
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,22 @@ | ||
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" | ||
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
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,17 @@ | ||
build: | ||
template_file: generic_tc_caching-linux-opt-base.tyml | ||
cache: | ||
artifact_url: ${system.tensorflow_dbg.android_arm64.url} | ||
artifact_namespace: ${system.tensorflow_dbg.android_arm64.namespace} | ||
system_config: | ||
> | ||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt} | ||
scripts: | ||
setup: "taskcluster/tf_tc-setup.sh --android-arm64" | ||
build: "taskcluster/tf_tc-build.sh --android-arm64 dbg" | ||
package: "taskcluster/tf_tc-package.sh" | ||
maxRunTime: 14400 | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "TensorFlow Android ARM64 debug" | ||
description: "Building TensorFlow 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,17 @@ | ||
build: | ||
template_file: generic_tc_caching-linux-opt-base.tyml | ||
cache: | ||
artifact_url: ${system.tensorflow_dbg.android_armv7.url} | ||
artifact_namespace: ${system.tensorflow_dbg.android_armv7.namespace} | ||
system_config: | ||
> | ||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt} | ||
scripts: | ||
setup: "taskcluster/tf_tc-setup.sh --android-armv7" | ||
build: "taskcluster/tf_tc-build.sh --android-armv7 dbg" | ||
package: "taskcluster/tf_tc-package.sh" | ||
maxRunTime: 14400 | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "TensorFlow Android ARMv7 debug" | ||
description: "Building TensorFlow 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,17 @@ | ||
build: | ||
template_file: generic_tc_caching-linux-opt-base.tyml | ||
cache: | ||
artifact_url: ${system.tensorflow_dbg.linux_amd64_cpu.url} | ||
artifact_namespace: ${system.tensorflow_dbg.linux_amd64_cpu.namespace} | ||
system_config: | ||
> | ||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt} | ||
scripts: | ||
setup: "taskcluster/tf_tc-setup.sh" | ||
build: "taskcluster/tf_tc-build.sh --linux-cpu dbg" | ||
package: "taskcluster/tf_tc-package.sh" | ||
maxRunTime: 14400 | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "TensorFlow Linux AMD64 CPU debug" | ||
description: "Building TensorFlow 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,18 @@ | ||
build: | ||
template_file: generic_tc_caching-linux-opt-base.tyml | ||
cache: | ||
artifact_url: ${system.tensorflow_gcc9.linux_amd64_cpu.url} | ||
artifact_namespace: ${system.tensorflow_gcc9.linux_amd64_cpu.namespace} | ||
docker_image: "ubuntu:20.04" | ||
system_config: | ||
> | ||
${tensorflow.packages_bionic.apt} && ${java.packages_bionic.apt} | ||
scripts: | ||
setup: "taskcluster/tf_tc-setup.sh" | ||
build: "taskcluster/tf_tc-build.sh --linux-cpu --py3" | ||
package: "taskcluster/tf_tc-package.sh" | ||
maxRunTime: 14400 | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "TensorFlow Linux AMD64 CPU opt/gcc9" | ||
description: "Building TensorFlow for Linux/AMD64, CPU only, opt/gcc9" |
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,17 @@ | ||
build: | ||
template_file: generic_tc_caching-linux-opt-base.tyml | ||
cache: | ||
artifact_url: ${system.tensorflow_dbg.linux_amd64_cuda.url} | ||
artifact_namespace: ${system.tensorflow_dbg.linux_amd64_cuda.namespace} | ||
system_config: | ||
> | ||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt} | ||
scripts: | ||
setup: "taskcluster/tf_tc-setup.sh --linux-cuda" | ||
build: "taskcluster/tf_tc-build.sh --linux-cuda dbg" | ||
package: "taskcluster/tf_tc-package.sh" | ||
maxRunTime: 14400 | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "TensorFlow Linux AMD64 CUDA debug" | ||
description: "Building TensorFlow 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,17 @@ | ||
build: | ||
template_file: generic_tc_caching-linux-opt-base.tyml | ||
cache: | ||
artifact_url: ${system.tensorflow_dbg.linux_arm64.url} | ||
artifact_namespace: ${system.tensorflow_dbg.linux_arm64.namespace} | ||
system_config: | ||
> | ||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt} | ||
scripts: | ||
setup: "taskcluster/tf_tc-setup.sh" | ||
build: "taskcluster/tf_tc-build.sh --linux-arm64 dbg" | ||
package: "taskcluster/tf_tc-package.sh" | ||
maxRunTime: 14400 | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "TensorFlow Linux ARM64 Cortex-A53 CPU debug" | ||
description: "Building TensorFlow 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
build: | ||
template_file: generic_tc_caching-linux-opt-base.tyml | ||
cache: | ||
artifact_url: ${system.tensorflow_dbg.linux_armv7.url} | ||
artifact_namespace: ${system.tensorflow_dbg.linux_armv7.namespace} | ||
system_config: | ||
> | ||
${tensorflow.packages_xenial.apt} && ${java.packages_xenial.apt} | ||
scripts: | ||
setup: "taskcluster/tf_tc-setup.sh" | ||
build: "taskcluster/tf_tc-build.sh --linux-arm dbg" | ||
package: "taskcluster/tf_tc-package.sh" | ||
maxRunTime: 14400 | ||
workerType: "${docker.tfBuild}" | ||
metadata: | ||
name: "TensorFlow Linux RPi3/ARMv7 CPU debug" | ||
description: "Building TensorFlow 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
Oops, something went wrong.