From 306cf4b2834cca1f1fc1fc58ba16c3248516dfd9 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 12 Dec 2018 19:02:56 -0800 Subject: [PATCH] Add a config setting to exclude xla from tensorflow_opensource target. PiperOrigin-RevId: 225296419 --- tensorflow/BUILD | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tensorflow/BUILD b/tensorflow/BUILD index 823ad8f5068..449a1372edb 100644 --- a/tensorflow/BUILD +++ b/tensorflow/BUILD @@ -267,6 +267,15 @@ config_setting( visibility = ["//visibility:public"], ) +# By default, XLA GPU is compiled into tensorflow when building with +# --config=cuda even when `with_xla_support` is false. The config setting +# here allows us to override the behavior if needed. +config_setting( + name = "no_xla_deps_in_cuda", + define_values = {"no_xla_deps_in_cuda": "true"}, + visibility = ["//visibility:public"], +) + config_setting( name = "with_gdr_support", define_values = {"with_gdr_support": "true"},