Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HugeCTR backend build #8

Merged
merged 1 commit into from
May 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions docker/dockerfile.tri
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM nvcr.io/nvidia/tritonserver:21.03-py3
ARG TRITON_VERSION=21.03
FROM nvcr.io/nvidia/tritonserver:${TRITON_VERSION}-py3
ARG RMM_VER=v0.19.0
ARG CUDF_VER=v0.19.1
ARG HUGECTR_VER=v3.0.1
Expand Down Expand Up @@ -147,6 +148,8 @@ RUN git clone https://github.com/rapidsai/asvdb.git /repos/asvdb && cd /repos/as

RUN pip uninstall numpy -y; pip install numpy

ARG TRITON_VERSION

RUN apt update -y && apt install rapidjson-dev -y
RUN git clone https://github.com/NVIDIA/HugeCTR.git /repos/HugeCTR && \
cd /repos/HugeCTR && if [ "$RELEASE" == "true" ] && [ ${HUGECTR_VER} != 0 ]; then git fetch --all --tags && git checkout tags/${HUGECTR_VER}; else git checkout master; fi && \
Expand All @@ -158,7 +161,11 @@ RUN git clone https://github.com/NVIDIA/HugeCTR.git /repos/HugeCTR && \
git clone https://github.com/triton-inference-server/hugectr_backend /repos/hugectr_inference_backend && \
cd /repos/hugectr_inference_backend && if [ "$RELEASE" == "true" ] && [ ${HUGEINF_VER} != 0 ] ; then git fetch --all --tags && git checkout tags/${HUGEINF_VER}; else git checkout main; fi && \
mkdir -p build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/hugectr .. && make -j$(nproc) && make install
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/hugectr .. \
-D TRITON_COMMON_REPO_TAG="r$TRITON_VERSION" \
-D TRITON_CORE_REPO_TAG="r$TRITON_VERSION" \
-D TRITON_BACKEND_REPO_TAG="r$TRITON_VERSION" \
&& make -j$(nproc) && make install

ENV LD_LIBRARY_PATH=/usr/local/hugectr/lib:$LD_LIBRARY_PATH \
LIBRARY_PATH=/usr/local/hugectr/lib:$LIBRARY_PATH \
Expand Down