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:
A. Unique TensorFlower 2024-09-19 15:06:22 -07:00 committed by TensorFlower Gardener
parent eda2d321b2
commit cf3b94729e
2 changed files with 18 additions and 0 deletions

View File

@ -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"],

View File

@ -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"],