aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nccl/remote.BUILD.tpl
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-09-06 11:41:59 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-06 11:52:12 -0700
commitb51f4c97e899e7663b6cf39b9b8da41540b06e4c (patch)
tree9b10c2c7d6a4bdd0c584893dbdce1651ac5c85b0 /third_party/nccl/remote.BUILD.tpl
parent0d76eadeb21ee9ff607838e65cb89533086109a6 (diff)
Fix nccl for remote builds.
Instead of symlinking the install dir, copy the two files we need. Symlinking a system dir like /usr is generally problematic as it can quickly lead to miscompiles for unrelated reasons. Furthermore, bazel will consider it an error if /usr is linked in and contains a recursive symlink in /usr/bin/X11 -> . PiperOrigin-RevId: 211842260
Diffstat (limited to 'third_party/nccl/remote.BUILD.tpl')
-rw-r--r--third_party/nccl/remote.BUILD.tpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/nccl/remote.BUILD.tpl b/third_party/nccl/remote.BUILD.tpl
new file mode 100644
index 0000000000..d66fc5563d
--- /dev/null
+++ b/third_party/nccl/remote.BUILD.tpl
@@ -0,0 +1,6 @@
+licenses(["restricted"])
+
+package(default_visibility = ["//visibility:public"])
+
+alias(name="LICENSE", actual = "%{target}:LICENSE")
+alias(name = "nccl", actual = "%{target}:nccl")