diff --git a/tensorflow-sources.file b/tensorflow-sources.file index f4e05e0acbc..f95e80ba436 100644 --- a/tensorflow-sources.file +++ b/tensorflow-sources.file @@ -55,10 +55,10 @@ BAZEL_OPTS="$BAZEL_OPTS --distinct_host_configuration=true" BAZEL_OPTS="$BAZEL_OPTS $(echo %{arch_build_flags} | tr ' ' '\n' | grep -v '^$' | sed -e 's|^|--copt=|' | tr '\n' ' ')" %endif BAZEL_OPTS="$BAZEL_OPTS --config=%{build_type} --cxxopt=-std=c++%{cms_cxx_standard} --host_cxxopt=-std=c++%{cms_cxx_standard} %{makeprocesses}" -BAZEL_OPTS="$BAZEL_OPTS --config=noaws --config=nogcp --config=nohdfs --config=nonccl" -%if "%{enable_tf_mkldnn}" == "0" +BAZEL_OPTS="$BAZEL_OPTS --config=noaws --config=nogcp --config=nohdfs --config=nonccl --config=mkl" +#%if "%{enable_tf_mkldnn}" == "0" BAZEL_OPTS="$BAZEL_OPTS --define tensorflow_mkldnn_contraction_kernel=0" -%endif +#%endif %ifarch ppc64le BAZEL_OPTS="$BAZEL_OPTS --define tflite_with_xnnpack=false" %endif @@ -77,10 +77,10 @@ export TF_NEED_CLANG=0 export TF_NEED_JEMALLOC=0 export TF_NEED_HDFS=0 export TF_NEED_GCP=0 -export TF_ENABLE_XLA=1 +export TF_ENABLE_XLA=0 export TF_NEED_OPENCL=0 export TF_NEED_VERBS=0 -export TF_NEED_MKL=0 +export TF_NEED_MKL=1 export TF_NEED_MPI=0 export TF_NEED_S3=0 export TF_NEED_GDR=0 @@ -149,11 +149,11 @@ bazel $BAZEL_OPTS //tensorflow/tools/pip_package:wheel %define bazel_dir %{_arch}-%{build_type} %endif -mkdir %{i}/lib-xla-runtime -find bazel-out/%{bazel_dir}/bin -path '*/pip_package/wheel_house/tensorflow-%{realversion}*.whl' | xargs --no-run-if-empty -i cp '{}' %{i}/ -find bazel-out/%{bazel_dir}/bin -path '*/external/ducc/libfft*.pic.a' | xargs --no-run-if-empty -i cp '{}' %{i}/lib-xla-runtime -find bazel-out/%{bazel_dir}/bin -path '*/external/local_tsl/tsl/*/libmutex.pic.a' | xargs --no-run-if-empty -i cp '{}' %{i}/lib-xla-runtime -find bazel-out/%{bazel_dir}/bin -path '*/external/nsync/libnsync_cpp.pic.a' | xargs --no-run-if-empty -i cp '{}' %{i}/lib-xla-runtime -for lib in libfft.pic.a libfft_wrapper.pic.a libmutex.pic.a libnsync_cpp.pic.a ; do - test -e %{i}/lib-xla-runtime/${lib} -done +#mkdir %{i}/lib-xla-runtime +#find bazel-out/%{bazel_dir}/bin -path '*/pip_package/wheel_house/tensorflow-%{realversion}*.whl' | xargs --no-run-if-empty -i cp '{}' %{i}/ +#find bazel-out/%{bazel_dir}/bin -path '*/external/ducc/libfft*.pic.a' | xargs --no-run-if-empty -i cp '{}' %{i}/lib-xla-runtime +#find bazel-out/%{bazel_dir}/bin -path '*/external/local_tsl/tsl/*/libmutex.pic.a' | xargs --no-run-if-empty -i cp '{}' %{i}/lib-xla-runtime +#find bazel-out/%{bazel_dir}/bin -path '*/external/nsync/libnsync_cpp.pic.a' | xargs --no-run-if-empty -i cp '{}' %{i}/lib-xla-runtime +#for lib in libfft.pic.a libfft_wrapper.pic.a libmutex.pic.a libnsync_cpp.pic.a ; do +# test -e %{i}/lib-xla-runtime/${lib} +#done diff --git a/tensorflow-sources.spec b/tensorflow-sources.spec index c5c12d8c2ec..e5030fb63f1 100644 --- a/tensorflow-sources.spec +++ b/tensorflow-sources.spec @@ -1,5 +1,5 @@ ### RPM external tensorflow-sources 2.17.0 -%define tag f48e52b5a63d0c54dc209bc8354c5e46afbe8889 +%define tag 3fd38f7a3ee46b6fcabbce933f444f7b70731fe9 %define branch cms/v%{realversion} %define github_user cms-externals %define build_type opt