Skip to content

Commit 2552cce

Browse files
committed
add resources flags
1 parent b571def commit 2552cce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_serving/tools/docker/Dockerfile.devel-gpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ RUN echo "Building with Bazel options: ${TF_SERVING_BAZEL_OPTIONS}"
154154

155155
RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1 && \
156156
LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs:${LD_LIBRARY_PATH} \
157-
bazel build --color=yes --curses=yes --config=cuda_clang --copt="-fPIC"\
157+
bazel build --color=yes --curses=yes --config=cuda_clang --copt="-fPIC" --local_ram_resources=32768 --local_cpu_resources=8 \
158158
${TF_SERVING_BAZEL_OPTIONS} \
159159
--verbose_failures \
160160
--output_filter=DONT_MATCH_ANYTHING \
@@ -165,7 +165,7 @@ RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/lib
165165
rm /usr/local/cuda/lib64/stubs/libcuda.so.1
166166

167167
# Build and install TensorFlow Serving API
168-
RUN bazel build --color=yes --curses=yes \
168+
RUN bazel build --color=yes --curses=yes --local_ram_resources=32768 --local_cpu_resources=8 \
169169
${TF_SERVING_BAZEL_OPTIONS} \
170170
--verbose_failures \
171171
--output_filter=DONT_MATCH_ANYTHING \

0 commit comments

Comments
 (0)