From 93f02152af6a6fab0e59bce93bb234fff53d4ea7 Mon Sep 17 00:00:00 2001 From: Raviteja Gorijala <36429068+rtg0795@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:58:41 -0700 Subject: [PATCH] Update Windows Release Build File --- .../windows/cpu/pip/build_tf_windows.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh b/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh index 3dc30e09853cc7..b3e669f4eb8fc3 100644 --- a/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh +++ b/tensorflow/tools/ci_build/windows/cpu/pip/build_tf_windows.sh @@ -101,14 +101,15 @@ while [[ $# -gt 0 ]]; do shift done -if [[ "$RELEASE_BUILD" == 1 ]]; then - # Overriding eigen strong inline speeds up the compiling of conv_grad_ops_3d.cc and conv_ops_3d.cc - # by 20 minutes. See https://github.com/tensorflow/tensorflow/issues/10521 - # Because this hurts the performance of TF, we don't override it in release build. - export TF_OVERRIDE_EIGEN_STRONG_INLINE=0 -else - export TF_OVERRIDE_EIGEN_STRONG_INLINE=1 -fi +# Overriding eigen strong inline speeds up the compiling of conv_grad_ops_3d.cc and conv_ops_3d.cc +# by 20 minutes. See https://github.com/tensorflow/tensorflow/issues/10521 +# Because this hurts the performance of TF, we don't override it in the release build. +# TF_OVERRIDE_EIGEN_STRONG_INLINE=1 reduces the size of simple_console_windows.zip +# Set Flag to 1 for both Nightly and Release as a workaround for zipper failing > 4BG +# TODO(Intel): Remove this when the issues is fixed + +export TF_OVERRIDE_EIGEN_STRONG_INLINE=1 + if [[ "$TF_NIGHTLY" == 1 ]]; then if [[ ${PROJECT_NAME} == *"2.0_preview"* ]]; then