зеркало из https://github.com/mozilla/DeepSpeech.git
27 строки
609 B
Bash
Executable File
27 строки
609 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -xe
|
|
|
|
source $(dirname "$0")/tc-tests-utils.sh
|
|
|
|
source $(dirname "$0")/tf_tc-vars.sh
|
|
|
|
BAZEL_TARGETS="
|
|
//native_client:libdeepspeech.so
|
|
//native_client:generate_scorer_package
|
|
"
|
|
|
|
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
|
|
|
|
do_deepspeech_binary_build
|
|
|
|
do_deepspeech_python_build "--cuda"
|
|
|
|
do_deepspeech_nodejs_build "--cuda"
|