diff options
author | Yifei Feng <yifeif@google.com> | 2017-11-22 00:39:22 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-11-22 00:42:30 -0800 |
commit | e70c00950d295c519fd9c7f8b12e13a3c5aaf710 (patch) | |
tree | ee1210f8810e0b0fec9346f762e854b371899919 /third_party/sycl/sycl | |
parent | ad7eeec1cc06d7fdba6ee404f03a35fab9cd3e6a (diff) |
Automated g4 rollback of changelist 176615107
PiperOrigin-RevId: 176622438
Diffstat (limited to 'third_party/sycl/sycl')
-rwxr-xr-x | third_party/sycl/sycl/BUILD.tpl | 17 | ||||
-rwxr-xr-x | third_party/sycl/sycl/build_defs.bzl.tpl | 17 |
2 files changed, 4 insertions, 30 deletions
diff --git a/third_party/sycl/sycl/BUILD.tpl b/third_party/sycl/sycl/BUILD.tpl index b6ceaadda7..6cad190630 100755 --- a/third_party/sycl/sycl/BUILD.tpl +++ b/third_party/sycl/sycl/BUILD.tpl @@ -10,27 +10,16 @@ package(default_visibility = ["//visibility:public"]) exports_files(["LICENSE.text"]) config_setting( - name = "using_sycl_ccpp", - define_values = { - "using_sycl": "true", - "using_trisycl": "false", + name = "using_sycl", + values = { + "define": "using_sycl=true", }, ) -config_setting( - name = "using_sycl_trisycl", - define_values = { - "using_sycl": "true", - "using_trisycl": "false", - }, -) - - cc_library( name = "sycl_headers", hdrs = glob([ "**/*.h", - "**/*.hpp", ]), includes = [".", "include"], ) diff --git a/third_party/sycl/sycl/build_defs.bzl.tpl b/third_party/sycl/sycl/build_defs.bzl.tpl index 33386f8957..09bef0a661 100755 --- a/third_party/sycl/sycl/build_defs.bzl.tpl +++ b/third_party/sycl/sycl/build_defs.bzl.tpl @@ -5,24 +5,9 @@ def if_sycl(if_true, if_false = []): Returns a select statement which evaluates to if_true if we're building with SYCL enabled. Otherwise, the select statement evaluates to if_false. - If we are building with triSYCL instead of ComputeCPP, a list with - the first element of if_true is returned. - """ - return select({ - "@local_config_sycl//sycl:using_sycl_ccpp": if_true, - "@local_config_sycl//sycl:using_sycl_trisycl": if_true[0:1], - "//conditions:default": if_false - }) - -def if_ccpp(if_true, if_false = []): - """Shorthand for select()'ing if we are building with ComputeCPP. - Returns a select statement which evaluates to if_true if we're building - with ComputeCPP enabled. Otherwise, the select statement evaluates - to if_false. """ return select({ - "@local_config_sycl//sycl:using_sycl_ccpp": if_true, - "@local_config_sycl//sycl:using_sycl_trisycl": if_false, + "@local_config_sycl//sycl:using_sycl": if_true, "//conditions:default": if_false }) |