diff options
Diffstat (limited to 'third_party/cub.BUILD')
-rw-r--r-- | third_party/cub.BUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/cub.BUILD b/third_party/cub.BUILD new file mode 100644 index 0000000000..29159c9dad --- /dev/null +++ b/third_party/cub.BUILD @@ -0,0 +1,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", + ], +) |