未验证 提交 8f14a89e 编写于 作者: J Jackwaterveg 提交者: GitHub

Merge pull request #1039 from zh794390558/kaldi

[install] compile kaldi static
......@@ -29,7 +29,7 @@ for type in attention_rescoring; do
output_dir=${ckpt_prefix}
mkdir -p ${output_dir}
python3 -u ${BIN_DIR}/test_wav.py \
--nproc ${ngpu} \
--ngpu ${ngpu} \
--config ${config_path} \
--result_file ${output_dir}/${type}.rsl \
--checkpoint_path ${ckpt_prefix} \
......
......@@ -9,6 +9,7 @@ apt-get install subversion -y
KALDI_GIT="--depth 1 -b master https://github.com/kaldi-asr/kaldi.git"
KALDI_DIR="$PWD/kaldi"
SHARED=false
if [ ! -d "$KALDI_DIR" ]; then
git clone $KALDI_GIT $KALDI_DIR
......@@ -23,17 +24,25 @@ git pull
mkdir -p "python"
touch "python/.use_default_python"
# check deps
./extras/check_dependencies.sh
# make tools
make -j4
# make src
pushd ../src
OPENBLAS_DIR=${KALDI_DIR}/../OpenBLAS
mkdir -p ${OPENBLAS_DIR}/install
./configure --shared --use-cuda=no --static-math --mathlib=OPENBLAS --openblas-root=${OPENBLAS_DIR}/install
if [ $SHARED == true ];
./configure --shared --use-cuda=no --static-math --mathlib=OPENBLAS --openblas-root=${OPENBLAS_DIR}/install
else
./configure --static --use-cuda=no --static-math --mathlib=OPENBLAS --openblas-root=${OPENBLAS_DIR}/install
fi
make clean -j && make depend -j && make -j4
popd
popd # kaldi/src
popd
popd # kaldi/tools
echo "Done installing Kaldi."
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册