Skip to content

Commit f7e6528

Browse files
authored
Merge pull request #1126 from netfs/r1.11
Revert "Fix missing NCCL header path"
2 parents 7045d5d + 34cde1c commit f7e6528

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel-gpu

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ RUN mkdir /usr/lib/x86_64-linux-gnu/include/ && \
126126

127127
# NCCL 2.x
128128
ENV TF_NCCL_VERSION=2
129-
ENV NCCL_INSTALL_PATH=/usr/lib/nccl/lib
130-
ENV NCCL_HDR_PATH=/usr/lib/nccl/include
129+
ENV NCCL_INSTALL_PATH=/usr/lib/nccl/
131130

132131
# Fix paths so that NCCL can be found
133132
WORKDIR /
134133
RUN mkdir -p ${NCCL_INSTALL_PATH} && \
135-
mkdir -p ${NCCL_HDR_PATH} && \
136-
ln -s /usr/include/nccl.h ${NCCL_HDR_PATH}/nccl.h && \
137-
ln -s /usr/lib/x86_64-linux-gnu/libnccl.so ${NCCL_INSTALL_PATH}/libnccl.so && \
138-
ln -s /usr/lib/x86_64-linux-gnu/libnccl.so.${TF_NCCL_VERSION} ${NCCL_INSTALL_PATH}/libnccl.so.${TF_NCCL_VERSION}
134+
mkdir ${NCCL_INSTALL_PATH}include/ && \
135+
mkdir ${NCCL_INSTALL_PATH}lib/ && \
136+
ln -s /usr/include/nccl.h ${NCCL_INSTALL_PATH}include/nccl.h && \
137+
ln -s /usr/lib/x86_64-linux-gnu/libnccl.so ${NCCL_INSTALL_PATH}lib/libnccl.so && \
138+
ln -s /usr/lib/x86_64-linux-gnu/libnccl.so.${TF_NCCL_VERSION} ${NCCL_INSTALL_PATH}lib/libnccl.so.${TF_NCCL_VERSION}
139139

140140
# Set TMP for nvidia build environment
141141
ENV TMP="/tmp"

0 commit comments

Comments
 (0)