[PATCH] D125096: [Bazel] Add support for s390x build target

Vibhuti Sawant via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 07:59:19 PDT 2022


vibhutisawant created this revision.
Herald added a subscriber: pengfei.
Herald added a project: All.
vibhutisawant requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

While executing the test suite for Tensorflow(v2.8.0), we encountered multiple TC failures with the below error

  'z14' is not a recognized processor for this target

This patch adds the s390x target to the build target list. It fixes TC failures in multiple modules of Tensorflow on s390x arch. It is also tested to have no effect on x86 machines.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125096

Files:
  utils/bazel/llvm-project-overlay/llvm/config.bzl


Index: utils/bazel/llvm-project-overlay/llvm/config.bzl
===================================================================
--- utils/bazel/llvm-project-overlay/llvm/config.bzl
+++ utils/bazel/llvm-project-overlay/llvm/config.bzl
@@ -85,6 +85,7 @@
     "@bazel_tools//src/conditions:darwin_arm64": native_arch_defines("AArch64", "arm64-apple-darwin"),
     "@bazel_tools//src/conditions:darwin_x86_64": native_arch_defines("X86", "x86_64-unknown-darwin"),
     "@bazel_tools//src/conditions:linux_aarch64": native_arch_defines("AArch64", "aarch64-unknown-linux-gnu"),
+    "@bazel_tools//src/conditions:linux_s390x": native_arch_defines("SystemZ", "systemz-unknown-linux_gnu"),
     "//conditions:default": native_arch_defines("X86", "x86_64-unknown-linux-gnu"),
 }) + [
     # These shouldn't be needed by the C++11 standard, but are for some


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125096.427639.patch
Type: text/x-patch
Size: 844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220506/bee3eb1c/attachment.bin>


More information about the llvm-commits mailing list