@@ -9,14 +9,22 @@ RUN git clone https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \
9
9
cd /opt/kaldi/tools && \
10
10
make -j $(nproc) && \
11
11
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 {} \; && \
16
23
rm -rf /opt/kaldi/.git
17
24
18
25
# 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)" && \
20
28
cat /usr/local/share/jupyter/kernels/python3/kernel.json
21
29
22
30
# Backend.AI specifics
@@ -30,7 +38,9 @@ LABEL ai.backend.kernelspec="1" \
30
38
ai.backend.resource.min.cuda.shares=0 \
31
39
ai.backend.runtime-type="python" \
32
40
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"
34
44
35
45
WORKDIR /home/work
36
46
# vim: ft=dockerfile
0 commit comments