Skip to content

Commit

Permalink
Fix HugeCTR compilation issues in TF image.
Browse files Browse the repository at this point in the history
  • Loading branch information
bashimao committed Sep 13, 2023
1 parent e2c9eff commit 4109b0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/dockerfile.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ ARG _CI_JOB_TOKEN=""
ARG HUGECTR_VER=main

ENV LD_LIBRARY_PATH=/usr/local/lib/python${PYTHON_VERSION}/dist-packages/tensorflow:$LD_LIBRARY_PATH \
LIBRARY_PATH=${HUGECTR_HOME}/lib:$LIBRARY_PATH \
SOK_COMPILE_UNIT_TEST=ON

RUN mkdir -p /usr/local/nvidia/lib64 && \
Expand All @@ -55,6 +54,9 @@ ARG INSTALL_DISTRIBUTED_EMBEDDINGS=false
ARG TFDE_VER=v23.03.00
RUN if [ "$HUGECTR_DEV_MODE" == "false" ]; then \
export HUGECTR_HOME=/usr/local/hugectr && \
rm -rf ${HUGECTR_HOME}/lib/libgmock* ${HUGECTR_HOME}/lib/pkgconfig/gmock* ${HUGECTR_HOME}/include/gmock && \
rm -rf ${HUGECTR_HOME}/lib/libgtest* ${HUGECTR_HOME}/lib/pkgconfig/gtest* ${HUGECTR_HOME}/include/gtest && \
git clone --branch ${HUGECTR_VER} --depth 1 --recurse-submodules --shallow-submodules https://${_CI_JOB_TOKEN}${_HUGECTR_REPO} /hugectr && \
pushd /hugectr && \
rm -rf .git/modules && \
Expand Down

0 comments on commit 4109b0a

Please sign in to comment.