File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ OS_VERSION=${4:-"20.04"}
1010docker build \
1111 -f tools/docker/base_container.Dockerfile \
1212 --network=host \
13- --progress=plain \
1413 --build-arg http_proxy=http://127.0.0.1:7890 \
1514 --build-arg https_proxy=http://127.0.0.1:7890 \
15+ --progress=plain \
1616 --build-arg CUDA_VERSION=${CUDA_VERSION} \
1717 --build-arg TF_VERSION=${TF_VERSION} \
1818 --build-arg PY_VERSION=${PY_VERSION} \
Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ set -x -e
44
55PY_VERSION=${1:- " 3.10" }
66TF_VERSION=${2:- " 2.15.1" }
7- OS_VERSION =${3:- " 20.04 " }
8- CUDA_VERSION =${4:- " 12.2.2 " }
7+ CUDA_VERSION =${3:- " 12.2.2 " }
8+ OS_VERSION =${4:- " 20.04 " }
99
1010docker build \
1111 -f tools/docker/dev_container.Dockerfile \
12+ --network=host \
13+ --build-arg http_proxy=http://127.0.0.1:7890 \
14+ --build-arg https_proxy=http://127.0.0.1:7890 \
1215 --progress=plain \
1316 --build-arg TF_PACKAGE=tensorflow \
1417 --build-arg PY_VERSION=${PY_VERSION} \
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ ARG PY_VERSION
5858
5959# Setup openmpi
6060COPY --from=openmpi_builder /opt/openmpi /opt/openmpi
61+ COPY --from=openmpi_builder /opt/ucx /opt/ucx
62+ COPY --from=openmpi_builder /opt/ucc /opt/ucc
6163ENV PATH=${PATH}:/opt/openmpi/bin \
6264 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/openmpi/lib
6365RUN mpirun --version
Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515# ==============================================================================
16- set -x -e
16+ set -xeuo pipefail
1717
1818CMAKE_VERSION=${1:- " 3.31.0" }
1919
@@ -27,12 +27,12 @@ rm /tmp/cmake-install.sh
2727cat > bashrc.txt << 'EOF '
2828export CMAKE_HOME=/opt/cmake
2929export PATH="${CMAKE_HOME}/bin:${PATH}"
30- export LD_LIBRARY_PATH="${CMAKE_HOME}/lib: ${LD_LIBRARY_PATH}"
30+ export LD_LIBRARY_PATH="${CMAKE_HOME}/lib${LD_LIBRARY_PATH:+: ${LD_LIBRARY_PATH} }"
3131EOF
3232cat bashrc.txt >> /root/.bashrc
3333
3434export CMAKE_HOME=/opt/cmake
3535export PATH=" ${CMAKE_HOME} /bin:${PATH} "
36- export LD_LIBRARY_PATH=" ${CMAKE_HOME} /lib: ${LD_LIBRARY_PATH} "
36+ export LD_LIBRARY_PATH=" ${CMAKE_HOME} /lib${LD_LIBRARY_PATH : + : ${LD_LIBRARY_PATH} }"
3737
3838cmake --version
You can’t perform that action at this time.
0 commit comments