Skip to content

Commit b43a74f

Browse files
committed
fixed build error
1 parent 7feea80 commit b43a74f

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

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

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ ENV MXNET_VERSION=1.7.0
8888

8989
RUN python3 -m pip uninstall -y torch && \
9090
python3 -m pip install --no-cache-dir \
91-
https://download.pytorch.org/whl/cu110/torch-${PYTORCH_VERSION}%2Bcu110-cp38-cp38-linux_x86_64.whl \
92-
https://download.pytorch.org/whl/cu110/torchvision-${TORCHVISION_VERSION}%2Bcu110-cp38-cp38-linux_x86_64.whl \
91+
https://download.pytorch.org/whl/cu111/torch-${PYTORCH_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl \
92+
https://download.pytorch.org/whl/cu111/torchvision-${TORCHVISION_VERSION}%2Bcu111-cp38-cp38-linux_x86_64.whl \
9393
https://download.pytorch.org/whl/torchaudio-${TORCHAUDIO_VERSION}-cp38-cp38-linux_x86_64.whl \
94+
https://download.pytorch.org/whl/cu111/torchcsprng-0.2.1%2Bcu111-cp38-cp38-linux_x86_64.whl \
95+
https://download.pytorch.org/whl/torchserve-0.3.0-py2.py3-none-any.whl \
9496
https://download.pytorch.org/whl/torchtext-${TORCHTEXT_VERSION}-cp38-cp38-linux_x86_64.whl && \
9597
python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION}
9698

@@ -109,34 +111,6 @@ RUN python3 -m pip install --no-cache-dir \
109111
nni==2.1 \
110112
scikit-nni==0.2.1
111113

112-
# install kaldi
113-
WORKDIR /opt
114-
115-
RUN ln -sf /usr/include/x86_64-linux-gnu/atlas /usr/local/include/atlas && \
116-
ln -sf /usr/include/x86_64-linux-gnu/cblas.h /usr/local/include/cblas.h && \
117-
ln -sf /usr/include/x86_64-linux-gnu/clapack.h /usr/local/include/clapack.h && \
118-
ln -sf /usr/lib/x86_64-linux-gnu/atlas /usr/local/lib/atlas
119-
120-
RUN git clone https://github.com/hephaex/kaldi.git /opt/kaldi && \
121-
cd /opt/kaldi/tools && \
122-
make -j $(nproc) && \
123-
cd /opt/kaldi/src && \
124-
./configure --shared --use-cuda \
125-
--cudatk-dir=/usr/local/cuda/ \
126-
--mathlib=ATLAS \
127-
--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" && \
128-
make depend -j $(nproc) && \
129-
make -j $(nproc)
130-
RUN cd /opt/kaldi/src && \
131-
make ext -j $(nproc) && \
132-
ldconfig && \
133-
find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -\
134-
exec rm {} \; && \
135-
rm -rf /opt/kaldi/.git
136-
137-
RUN mkdir -p /workspace && \
138-
chmod -R 777 /workspace
139-
140114
RUN apt autoclean && \
141115
rm -rf /var/lib/apt/lists/* && \
142116
rm -rf /root/.cache && \

0 commit comments

Comments
 (0)