Skip to content

Commit 7ac7982

Browse files
committed
add builder of ext
1 parent 76827be commit 7ac7982

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

python-kaldi/Dockerfile.py38-cuda11.1

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,22 @@ RUN git clone https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \
99
cd /opt/kaldi/tools && \
1010
make -j $(nproc) && \
1111
cd /opt/kaldi/src && \
12-
./configure --shared --use-cuda && \
13-
make depend -j $(nproc) && \
14-
make -j $(nproc) -lcuda && \
15-
find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -exec rm {} \; && \
12+
./configure --shared --use-cuda \
13+
--cudatk-dir=/usr/local/cuda/ \
14+
--mathlib=ATLAS \
15+
--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" && \
16+
make depend -j $(nproc) -lcuda -L /usr/local/cuda/lib64/stubs && \
17+
make -j $(nproc) -lcuda -L /usr/local/cuda/lib64/stubs
18+
RUN cd /opt/kaldi/src && \
19+
make ext -j $(nproc) -lcuda -L /usr/local/cuda/lib64/stubs && \
20+
ldconfig && \
21+
find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -\
22+
exec rm {} \; && \
1623
rm -rf /opt/kaldi/.git
1724

1825
# Install ipython kernelspec
19-
Run python3 -m ipykernel install --display-name "Lablup Kaldi 21.01 on Python 3.8 (CUDA 11.1)" && \
26+
Run python3 -m ipykernel install --display-name "Lablup Kaldi 21.01 on Python 3\
27+
.8 (CUDA 11.1)" && \
2028
cat /usr/local/share/jupyter/kernels/python3/kernel.json
2129

2230
# Backend.AI specifics
@@ -30,7 +38,9 @@ LABEL ai.backend.kernelspec="1" \
3038
ai.backend.resource.min.cuda.shares=0 \
3139
ai.backend.runtime-type="python" \
3240
ai.backend.runtime-path="/usr/bin/python3" \
33-
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8080,jupyterlab:http:8090,vscode:http:8180,tensorboard:http:6006,mlflow-ui:preopen:5000,nniboard:preopen:8080"
41+
ai.backend.service-ports="ipython:pty:3000,jupyter:http:8080,jupyterlab:h\
42+
ttp:8090,vscode:http:8180,tensorboard:http:6006,mlflow-ui:preopen:5000,nniboard\
43+
:preopen:8080"
3444

3545
WORKDIR /home/work
3646
# vim: ft=dockerfile

0 commit comments

Comments
 (0)