Skip to content

Commit 76827be

Browse files
committed
add Kaldi ext builder
1 parent 2a30ecd commit 76827be

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

python-ff/Dockerfile.21.01-py38-cuda11.1

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@ RUN git clone https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \
4646
cd /opt/kaldi/tools && \
4747
make -j $(nproc) && \
4848
cd /opt/kaldi/src && \
49-
./configure --shared --use-cuda && \
49+
./configure --shared --use-cuda \
50+
--cudatk-dir=/usr/local/cuda/ \
51+
--mathlib=ATLAS \
52+
--cuda-arch="-gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80" && \
5053
make depend -j $(nproc) && \
51-
make -j $(nproc) -lcuda -L /usr/local/cuda/lib64/stubs && \
54+
make -j $(nproc) -lcuda -L /usr/local/cuda/lib64/stubs && \
55+
make -j $(nproc) ext -lcuda -L /usr/local/cuda/lib64/stubs && \
56+
ldconfig && \
5257
find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -exec rm {} \; && \
5358
rm -rf /opt/kaldi/.git
5459

0 commit comments

Comments
 (0)