Skip to content

Commit bdd33b8

Browse files
committed
always build tensorflow without mkldnn contraction kernel
1 parent 3e8f958 commit bdd33b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tensorflow-sources.file

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ BAZEL_OPTS="$BAZEL_OPTS $(echo %{arch_build_flags} | tr ' ' '\n' | grep -v '^$'
6666
%endif
6767
BAZEL_OPTS="$BAZEL_OPTS --config=%{build_type} --cxxopt=-std=c++%{cms_cxx_standard} --host_cxxopt=-std=c++%{cms_cxx_standard} %{makeprocesses}"
6868
BAZEL_OPTS="$BAZEL_OPTS --config=noaws --config=nogcp --config=nohdfs --config=nonccl"
69-
%if "%{enable_tf_mkldnn}" == "0"
69+
# always build tensorflow without mkldnn contraction kernel
7070
BAZEL_OPTS="$BAZEL_OPTS --define=zendnn=true --define=build_with_mkl_dnn_only=false --define=build_with_mkl=false --define=enable_mkl=false --define=tensorflow_mkldnn_contraction_kernel=0 --define=build_with_mkl_opensource=false"
71-
%endif
7271
%ifarch ppc64le
7372
BAZEL_OPTS="$BAZEL_OPTS --define=tflite_with_xnnpack=false --define tflite_kernel_use_xnnpack=false"
7473
%endif

0 commit comments

Comments
 (0)