Skip to content

Commit 54c6964

Browse files
authored
Merge pull request #10127 from gartung/gartung-tf-no-mkl-16.0.x
Always build tensorflow without mkldnn contraction kernel
2 parents 8d5d1a6 + 2fbb290 commit 54c6964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow-sources.file

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ BuildRequires: bazel java-env git
99
#Set tensorflow_mkldnn_contraction_kernel option
1010
#https://github.com/tensorflow/tensorflow/blob/v2.12.1/tensorflow/core/kernels/BUILD#L79-L89
1111
%if "%{?enable_tf_mkldnn:set}" != "set"
12-
%define enable_tf_mkldnn 1
12+
#By default disable tf_mkldnn
13+
%define enable_tf_mkldnn 0
1314
%endif
1415

15-
1616
#Set cms_cxx_standard to 17 as LLVM downloaded by TF does not build with c++20
1717
%if "%{cms_cxx_standard}" == "20"
1818
%undefine cms_cxx_standard

0 commit comments

Comments
 (0)