aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/platform/default/build_config/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/platform/default/build_config/BUILD')
-rw-r--r--tensorflow/core/platform/default/build_config/BUILD16
1 files changed, 16 insertions, 0 deletions
diff --git a/tensorflow/core/platform/default/build_config/BUILD b/tensorflow/core/platform/default/build_config/BUILD
index f4ff341a48..2cb64c3922 100644
--- a/tensorflow/core/platform/default/build_config/BUILD
+++ b/tensorflow/core/platform/default/build_config/BUILD
@@ -10,6 +10,7 @@ exports_files(["LICENSE"])
load("//tensorflow:tensorflow.bzl", "tf_copts")
load("//tensorflow:tensorflow.bzl", "tf_cuda_library")
load("@local_config_cuda//cuda:platform.bzl", "cuda_library_path")
+load("@local_config_sycl//sycl:platform.bzl", "sycl_library_path")
cc_library(
name = "gtest",
@@ -143,6 +144,21 @@ cc_library(
],
)
+cc_library(
+ name = "sycl",
+ data = [
+ "@local_config_sycl//sycl:{}".format(sycl_library_path("ComputeCpp")),
+ ],
+ linkopts = select({
+ "//conditions:default": [
+ "-Wl,-rpath,../local_config_sycl/sycl/lib",
+ ],
+ }),
+ deps = [
+ "@local_config_sycl//sycl:syclrt",
+ ],
+)
+
filegroup(
name = "android_srcs",
srcs = glob(["*.h"]),