aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/gpus/cuda
diff options
context:
space:
mode:
authorGravatar Jingyue Wu <jingyue@google.com>2016-12-06 15:39:11 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-06 16:13:04 -0800
commitb2bcf5f75e5f83fe977cba12fdf764c5a2d76159 (patch)
tree823996c146a1e2d649b74dad600f82ee2a1b5138 /third_party/gpus/cuda
parent008f80e6230d06e601e4fc718039b702e06c652e (diff)
Locate libdevice files for OSS build.
1. Created open-source target libdevice_root that wraps all libdevice files. 2. platform/posix/cuda_libdevice_path depends on the libdevice_root target. 3. Added cuda_libdevice_path_test that verifies libdevice files exist in the computed libdevice directory. Change: 141237087
Diffstat (limited to 'third_party/gpus/cuda')
-rw-r--r--third_party/gpus/cuda/BUILD.tpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/gpus/cuda/BUILD.tpl b/third_party/gpus/cuda/BUILD.tpl
index cb985c2251..d3c307a6a0 100644
--- a/third_party/gpus/cuda/BUILD.tpl
+++ b/third_party/gpus/cuda/BUILD.tpl
@@ -160,3 +160,9 @@ cc_library(
],
visibility = ["//visibility:public"],
)
+
+cc_library(
+ name = "libdevice_root",
+ data = glob(["nvvm/libdevice/*.bc"]),
+ visibility = ["//visibility:public"],
+)