diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-28 13:36:18 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-28 14:30:18 -0700 |
commit | 64be2ecc07c698df05d88051ec42a0409d1a9863 (patch) | |
tree | 0b96c238506c713bae3f6a99dc3399f268f61bb2 /third_party/gpus | |
parent | 19143aa0e2ac3cdf0d6826e7e1d00cd864080394 (diff) |
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
Diffstat (limited to 'third_party/gpus')
-rw-r--r-- | third_party/gpus/crosstool/BUILD.tpl | 14 |
1 files changed, 14 insertions, 0 deletions
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 = { |