From 64be2ecc07c698df05d88051ec42a0409d1a9863 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 28 Sep 2018 13:36:18 -0700 Subject: Do not pass in the bazel default toolchain via extra_toolchains. Without this the default toolchain is used for a subset of the build and the tests do not actually run on GPUs. This uncovered a setup problem in the Docker image that needed fixing. PiperOrigin-RevId: 214987676 --- third_party/gpus/crosstool/BUILD.tpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'third_party/gpus') diff --git a/third_party/gpus/crosstool/BUILD.tpl b/third_party/gpus/crosstool/BUILD.tpl index f638756d23..c8812fab33 100644 --- a/third_party/gpus/crosstool/BUILD.tpl +++ b/third_party/gpus/crosstool/BUILD.tpl @@ -2,6 +2,20 @@ licenses(["restricted"]) package(default_visibility = ["//visibility:public"]) +toolchain( + name = "toolchain-linux-x86_64", + exec_compatible_with = [ + "@bazel_tools//platforms:linux", + "@bazel_tools//platforms:x86_64", + ], + target_compatible_with = [ + "@bazel_tools//platforms:linux", + "@bazel_tools//platforms:x86_64", + ], + toolchain = ":cc-compiler-local", + toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", +) + cc_toolchain_suite( name = "toolchain", toolchains = { -- cgit v1.2.3