Skip to content

Commit 77ab464

Browse files
committed
Add GLIBCXX_USE_CXX11_ABI=0 compiler define to TensorFlow CPU build to match GPU build
1 parent 3e54c13 commit 77ab464

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tensorflow-whl/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ RUN cd /usr/local/src && \
7373
# Create a tensorflow wheel for CPU
7474
RUN cd /usr/local/src/tensorflow && \
7575
cat /dev/null | ./configure && \
76-
bazel build --config=opt --config=v2 //tensorflow/tools/pip_package:build_pip_package && \
76+
bazel build --config=opt \
77+
--config=v2 \
78+
--cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
79+
//tensorflow/tools/pip_package:build_pip_package && \
7780
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_cpu && \
7881
bazel clean
7982

0 commit comments

Comments
 (0)