Skip to content

Commit

Permalink
Move non glob files out of glob (#192)
Browse files Browse the repository at this point in the history
* Move non glob files out of glob

* remove not existing option

* add option to allow empty glob
  • Loading branch information
hofbi authored Nov 5, 2023
1 parent 902f979 commit 1a6c888
Showing 1 changed file with 34 additions and 16 deletions.
50 changes: 34 additions & 16 deletions cuda/runtime/BUILD.local_cuda
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,24 @@ filegroup(
name = "compiler_deps",
srcs = [
":_cuda_header_files",
] + glob([
"cuda/version.txt",
"cuda/version.json",
"cuda/bin/**",
"cuda/lib64/**",
"cuda/nvvm/**",
]),
] + glob(
[
"cuda/version.json",
"cuda/version.txt",
"cuda/bin/**",
"cuda/lib64/**",
"cuda/nvvm/**",
],
allow_empty = True,
),
)

filegroup(
name = "_cuda_header_files",
srcs = glob(["cuda/include/**"]),
srcs = glob(
["cuda/include/**"],
allow_empty = True,
),
visibility = ["//visibility:private"],
)

Expand Down Expand Up @@ -174,15 +180,21 @@ cc_library(

cc_library(
name = "cub",
hdrs = glob(["cuda/include/cub/**"]),
hdrs = glob(
["cuda/include/cub/**"],
allow_empty = True,
),
includes = [
"cuda/include",
],
)

cc_library(
name = "thrust",
hdrs = glob(["cuda/include/thrust/**"]),
hdrs = glob(
["cuda/include/thrust/**"],
allow_empty = True,
),
includes = [
"cuda/include",
],
Expand All @@ -204,7 +216,10 @@ cc_import(

cc_library(
name = "cupti_headers",
hdrs = glob(["cuda/extras/CUPTI/include/*.h"]),
hdrs = glob(
["cuda/extras/CUPTI/include/*.h"],
allow_empty = True,
),
includes = ["cuda/extras/CUPTI/include"],
)

Expand Down Expand Up @@ -337,11 +352,14 @@ cc_import(
cc_library(
name = "nvptxcompiler",
srcs = [],
hdrs = glob([
"cuda/include/fatbinary_section.h",
"cuda/include/nvPTXCompiler.h",
"cuda/include/crt/*",
]),
hdrs = glob(
[
"cuda/include/fatbinary_section.h",
"cuda/include/nvPTXCompiler.h",
"cuda/include/crt/*",
],
allow_empty = True,
),
includes = [
"cuda/include",
],
Expand Down

0 comments on commit 1a6c888

Please sign in to comment.