Skip to content

Commit a313d90

Browse files
gautamvasudevannetfs
authored andcommitted
Fix GPU build
Fixes #1150 PiperOrigin-RevId: 217890974 (cherry picked from commit be7c70d)
1 parent ff018e2 commit a313d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel-gpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ RUN echo "Building with Bazel options: ${TF_SERVING_BAZEL_OPTIONS}"
155155

156156
RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1 && \
157157
LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs:${LD_LIBRARY_PATH} \
158-
bazel build --color=yes --curses=yes --config=cuda \
158+
bazel build --color=yes --curses=yes --config=cuda --copt="-fPIC"\
159159
${TF_SERVING_BAZEL_OPTIONS} \
160160
--verbose_failures \
161161
--output_filter=DONT_MATCH_ANYTHING \

0 commit comments

Comments
 (0)