mirror of
https://github.com/tensorflow/tensorflow.git
synced 2024-11-21 21:05:19 +00:00
Add nccl_headers
alias to the content of BUILD file in NCCL repository when NCCL stub is not used.
PiperOrigin-RevId: 676578558
This commit is contained in:
parent
eda2d321b2
commit
cf3b94729e
9
third_party/nccl/hermetic/nccl_configure.bzl
vendored
9
third_party/nccl/hermetic/nccl_configure.bzl
vendored
@ -60,6 +60,15 @@ alias(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
alias(
|
||||
name = "nccl_headers",
|
||||
actual = select({
|
||||
"@local_config_cuda//cuda:cuda_tools_and_libs": "@cuda_nccl//:headers",
|
||||
"//conditions:default": "@nccl_archive//:nccl_headers",
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "hermetic_nccl_config",
|
||||
hdrs = ["nccl_config.h"],
|
||||
|
@ -60,6 +60,15 @@ alias(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
alias(
|
||||
name = "nccl_headers",
|
||||
actual = select({
|
||||
"@local_config_cuda//cuda:cuda_tools_and_libs": "@cuda_nccl//:headers",
|
||||
"//conditions:default": "@nccl_archive//:nccl_headers",
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "hermetic_nccl_config",
|
||||
hdrs = ["nccl_config.h"],
|
||||
|
Loading…
Reference in New Issue
Block a user