Automated rollback of commit 72f193b5c9

PiperOrigin-RevId: 222910206
This commit is contained in:
Gunhan Gulsoy 2018-11-26 16:51:23 -08:00 committed by TensorFlower Gardener
parent 35dcdd967e
commit eea816869a
5 changed files with 18 additions and 6 deletions

View File

@ -1694,6 +1694,7 @@ def main():
config_info_line('nohdfs', 'Disable HDFS support.')
config_info_line('noignite', 'Disable Apacha Ignite support.')
config_info_line('nokafka', 'Disable Apache Kafka support.')
config_info_line('nonccl', 'Disable NVIDIA NCCL support.')
if __name__ == '__main__':

View File

@ -246,6 +246,12 @@ config_setting(
visibility = ["//visibility:public"],
)
config_setting(
name = "no_nccl_support",
define_values = {"no_nccl_support": "true"},
visibility = ["//visibility:public"],
)
# Crosses between platforms and file system libraries not supported on those
# platforms due to limitations in nested select() statements.
config_setting(

View File

@ -95,7 +95,7 @@ load("//tensorflow:tensorflow.bzl", "tf_cc_test_gpu")
load("//tensorflow:tensorflow.bzl", "tf_cc_tests_gpu")
load("//tensorflow:tensorflow.bzl", "tf_cuda_cc_test")
load("//tensorflow:tensorflow.bzl", "tf_version_info_genrule")
load("//tensorflow:tensorflow.bzl", "if_not_tx2_llvm_or_windows_cuda")
load("//tensorflow:tensorflow.bzl", "if_nccl")
load("//tensorflow:tensorflow.bzl", "tf_cuda_only_cc_test")
# For platform specific build config
@ -1416,9 +1416,7 @@ cc_library(
"//tensorflow/core/kernels:summary_kernels",
"//tensorflow/core/kernels:training_ops",
"//tensorflow/core/kernels:word2vec_kernels",
] + tf_additional_cloud_kernel_deps() + if_not_tx2_llvm_or_windows_cuda([
"//tensorflow/core/kernels:nccl_kernels",
]) + if_not_windows([
] + tf_additional_cloud_kernel_deps() + if_not_windows([
"//tensorflow/core/kernels:fact_op",
"//tensorflow/core/kernels:array_not_windows",
"//tensorflow/core/kernels:math_not_windows",
@ -1443,6 +1441,8 @@ cc_library(
]) + if_cuda([
"//tensorflow/core/grappler/optimizers:gpu_swapping_kernels",
"//tensorflow/core/grappler/optimizers:gpu_swapping_ops",
]) + if_nccl([
"//tensorflow/core/kernels:nccl_kernels",
]),
)

View File

@ -203,8 +203,12 @@ def if_override_eigen_strong_inline(a):
"//conditions:default": [],
})
def if_not_tx2_llvm_or_windows_cuda(a):
return if_not_windows_cuda(a)
def if_nccl(a):
return select({
"//tensorflow:no_nccl_support": [],
"//tensorflow:windows": [],
"//conditions:default": a,
})
def get_win_copts(is_external = False):
WINDOWS_COPTS = [

View File

@ -72,6 +72,7 @@ build:nogcp --define=no_gcp_support=true
build:nohdfs --define=no_hdfs_support=true
build:nokafka --define=no_kafka_support=true
build:noignite --define=no_ignite_support=true
build:nonccl --define=no_nccl_support=true
build --define=use_fast_cpp_protos=true
build --define=allow_oversize_protos=true