aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/cub.BUILD
blob: 29159c9dad3d32121ce05278821e41b39f3f2a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Description: CUB library which is a set of primitives for GPU programming.

package(
    default_visibility = ["//visibility:public"],
)

licenses(["notice"])  # BSD

exports_files(["LICENSE.TXT"])

load("@local_config_cuda//cuda:build_defs.bzl", "cuda_default_copts", "if_cuda")

filegroup(
    name = "cub_header_files",
    srcs = glob([
        "cub/**",
    ]),
)

cc_library(
    name = "cub",
    hdrs = if_cuda([":cub_header_files"]),
    deps = [
        "@local_config_cuda//cuda:cuda_headers",
    ],
)