Skip to content

Commit

Permalink
Kaldi remove lm target because rnnlm has lm (#1543)
Browse files Browse the repository at this point in the history
* Update Dockerfile.win

* Update Dockerfile.dockcross

* Update Dockerfile.manylinux

* Update Dockerfile.dockcross-manylinux

* Update Dockerfile.manylinux-mkl

* Update Dockerfile.win32

* Update build-vosk.sh
  • Loading branch information
msqr1 authored Apr 1, 2024
1 parent 7da70c6 commit 40937b6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion android/lib/build-vosk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ CXX=$CXX AR=$AR RANLIB=$RANLIB CXXFLAGS="$ARCHFLAGS -O3 -DFST_NO_DYNAMIC_LINKING
--fst-root=${WORKDIR}/local --fst-version=${OPENFST_VERSION}
make -j 8 depend
cd $WORKDIR/kaldi/src
make -j 8 online2 lm rnnlm
make -j 8 online2 rnnlm

# Vosk-api
cd $WORKDIR
Expand Down
2 changes: 1 addition & 1 deletion travis/Dockerfile.dockcross
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ RUN cd /opt \
&& sed -i "s:TARGET_ARCH=\"\`uname -m\`\":TARGET_ARCH=$(echo $CROSS_TRIPLE|cut -d - -f 1):g" configure \
&& sed -i "s: -O1 : -O3 :g" makefiles/linux_openblas_arm.mk \
&& ./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no \
&& make -j 10 online2 lm rnnlm \
&& make -j 10 online2 rnnlm \
&& find /opt/kaldi -name "*.o" -exec rm {} \;
2 changes: 1 addition & 1 deletion travis/Dockerfile.dockcross-manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ RUN cd /opt \
&& sed -i "s:TARGET_ARCH=\"\`uname -m\`\":TARGET_ARCH=$(echo $CROSS_TRIPLE|cut -d - -f 1):g" configure \
&& sed -i "s: -O1 : -O3 :g" makefiles/linux_openblas_arm.mk \
&& ./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no \
&& make -j 10 online2 lm rnnlm \
&& make -j 10 online2 rnnlm \
&& find /opt/kaldi -name "*.o" -exec rm {} \;
2 changes: 1 addition & 1 deletion travis/Dockerfile.manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ RUN cd /opt \
&& ./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no \
&& sed -i 's:-msse -msse2:-msse -msse2:g' kaldi.mk \
&& sed -i 's: -O1 : -O3 :g' kaldi.mk \
&& make -j $(nproc) online2 lm rnnlm \
&& make -j $(nproc) online2 rnnlm \
&& find /opt/kaldi -name "*.o" -exec rm {} \;
2 changes: 1 addition & 1 deletion travis/Dockerfile.manylinux-mkl
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ RUN cd /opt \
&& ./configure --mathlib=MKL --shared --use-cuda=no \
&& sed -i 's:-msse -msse2:-msse -msse2 -mavx -mavx2:g' kaldi.mk \
&& sed -i 's: -O1 : -O3 :g' kaldi.mk \
&& make -j $(nproc) online2 lm rnnlm \
&& make -j $(nproc) online2 rnnlm \
&& find /opt/kaldi -name "*.o" -exec rm {} \;
2 changes: 1 addition & 1 deletion travis/Dockerfile.win
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ RUN cd /opt/kaldi \
--host=x86_64-w64-mingw32 --openblas-clapack-root=/opt/kaldi/local \
--fst-root=/opt/kaldi/local --fst-version=1.8.0 \
&& make depend -j \
&& make -j $(nproc) online2 lm rnnlm
&& make -j $(nproc) online2 rnnlm
2 changes: 1 addition & 1 deletion travis/Dockerfile.win32
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ RUN cd /opt/kaldi \
--host=i686-w64-mingw32 --openblas-clapack-root=/opt/kaldi/local \
--fst-root=/opt/kaldi/local --fst-version=1.8.0 \
&& make depend -j \
&& make -j $(nproc) online2 lm rnnlm
&& make -j $(nproc) online2 rnnlm

0 comments on commit 40937b6

Please sign in to comment.