File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 104104 # make install should also be test when unittest
105105 make install -j ` nproc`
106106 pip install /usr/local/opt/paddle/share/wheels/* .whl
107- paddle version
107+ if [[ ${WITH_FLUID_ONLY:- OFF} == " OFF" ]] ; then
108+ paddle version
109+ fi
108110 fi
109111}
110112
183185 NCCL_DEPS=" "
184186 fi
185187
188+ if [[ ${WITH_FLUID_ONLY:- OFF} == " OFF" ]]; then
189+ PADDLE_VERSION=" paddle version"
190+ CMD=' "paddle", "version"'
191+ else
192+ PADDLE_VERSION=" true"
193+ CMD=' "true"'
194+ fi
195+
186196 cat >> /paddle/build/Dockerfile << EOF
187197 ADD python/dist/*.whl /
188198 # run paddle version to install python packages first
@@ -192,15 +202,15 @@ EOF
192202 pip install /*.whl; apt-get install -f -y && \
193203 apt-get clean -y && \
194204 rm -f /*.whl && \
195- paddle version && \
205+ ${PADDLE_VERSION} && \
196206 ldconfig
197207 ${DOCKERFILE_CUDNN_DSO}
198208 ${DOCKERFILE_GPU_ENV}
199209 ENV NCCL_LAUNCH_MODE PARALLEL
200210 ADD go/cmd/pserver/pserver /usr/bin/
201211 ADD go/cmd/master/master /usr/bin/
202212 # default command shows the paddle version and exit
203- CMD ["paddle", "version" ]
213+ CMD [${CMD} ]
204214EOF
205215}
206216
You can’t perform that action at this time.
0 commit comments