Skip to content

Commit

Permalink
Merge pull request #7402 from cms-sw/tf-ppc64le-flags
Browse files Browse the repository at this point in the history
build tensorflow with correct ppc64le_build_flags
  • Loading branch information
smuzaffar committed Oct 25, 2021
2 parents a93282b + 69a94fc commit de03ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootstrap-bundle.spec
Expand Up @@ -38,7 +38,7 @@ rm -f %{i}/bin/xml2-config %{i}/lib/xml2Conf.sh
%if %ismac
cp -P $GCC_ROOT/lib/lib{stdc++,gcc_s}*.%{soname} %{i}/lib
%else
cp -P $GCC_ROOT/%{libdir}/lib{stdc++,gcc_s}.%{soname}* %{i}/lib
cp -P $GCC_ROOT/%{libdir}/lib{stdc++,gcc_s,gomp}.%{soname}* %{i}/lib
cp -P $GCC_ROOT/lib/libelf.%{soname}* %{i}/lib
cp -P $GCC_ROOT/lib/libelf-*.%{soname} %{i}/lib
%endif
Expand Down
3 changes: 1 addition & 2 deletions tensorflow-sources.file
Expand Up @@ -35,8 +35,7 @@ BAZEL_OPTS="--batch --output_user_root ../build build -s --verbose_failures --di
BAZEL_OPTS="$BAZEL_OPTS --copt=%{vectorize_flag}"
%else
%ifarch ppc64le
BAZEL_OPTS="$BAZEL_OPTS --copt=-mcpu=native --copt=-mtune=native"
BAZEL_OPTS="$BAZEL_OPTS --copt=--param=l1-cache-size=64 --copt=--param=l1-cache-line-size=128 --copt=--param=l2-cache-size=512"
BAZEL_OPTS="$BAZEL_OPTS $(echo %{ppc64le_build_flags} | tr ' ' '\n' | grep -v '^$' | sed -e 's|^|--copt=|' | tr '\n' ' ')"
%else
BAZEL_OPTS="$BAZEL_OPTS --copt=-mcpu=native --copt=-mtune=native"
%endif
Expand Down

0 comments on commit de03ba7

Please sign in to comment.