Skip to content

Commit baaf010

Browse files
committed
Fix CUDA builds. Remove not finished GPU tests.
1 parent dff97e1 commit baaf010

File tree

9 files changed

+2
-279
lines changed

9 files changed

+2
-279
lines changed

.github/workflows/cuda_linux_aarch64_linux_aarch64_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
- run: echo "Clang building..."
5656
- run: bazel build //cc/tests/gpu:all --config=build_cuda_with_clang --config=cuda_clang_local --config=cuda_libraries_from_stubs
5757
- run: echo "NVCC building..."
58-
- run: bazel build //cc/tests/gpu:all --config=build_cuda_with_nvcc --config=cuda_clang_local --config=cuda_libraries_from_stubs
58+
- run: bazel build //cc/tests/gpu:all --config=build_cuda_with_clang --config=cuda --config=cuda_libraries_from_stubs

.github/workflows/cuda_linux_x86_64_linux_x86_64_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
- run: echo "Clang building..."
5656
- run: bazel build //cc/tests/gpu:all --config=build_cuda_with_clang --config=cuda_clang_local --config=cuda_libraries_from_stubs
5757
- run: echo "NVCC building..."
58-
- run: bazel build //cc/tests/gpu:all --config=build_cuda_with_nvcc --config=cuda_clang_local --config=cuda_libraries_from_stubs
58+
- run: bazel build //cc/tests/gpu:all --config=build_cuda_with_nvcc --config=cuda --config=cuda_libraries_from_stubs

cc/tests/gpu/BUILD

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -51,93 +51,11 @@ cuda_cc_test(
5151
],
5252
)
5353

54-
#############################################
55-
# Hermetic CC Toolchain Ultimate Test
56-
57-
# Execution platform rules
58-
cc_binary(
59-
name = "protogen",
60-
srcs = ["protogen.cc"],
61-
linkshared = True,
62-
deps = ["@pybind11"],
63-
)
64-
65-
genrule(
66-
name = "protogen_so",
67-
srcs = [":protogen"],
68-
outs = ["protogen.so"],
69-
cmd = "cp $(location :protogen) $@",
70-
)
71-
72-
py_binary(
73-
name = "protogen_tool",
74-
srcs = ["protogen_tool.py"],
75-
#args = [
76-
# "-f /tmp/my.proto",
77-
#],
78-
data = [":protogen.so"],
79-
)
80-
81-
genrule(
82-
name = "my_proto",
83-
outs = [
84-
"my.proto",
85-
],
86-
cmd = "$(location :protogen_tool) -f $@",
87-
tools = [":protogen_tool"],
88-
)
89-
90-
proto_library(
91-
name = "my_proto_library",
92-
srcs = [":my_proto"],
93-
)
94-
95-
# Target platform rules
96-
cc_proto_library(
97-
name = "my_proto_library_cc",
98-
deps = [":my_proto_library"],
99-
)
100-
101-
cc_binary(
102-
name = "protoclient",
103-
srcs = ["protoclient.cc"],
104-
linkshared = True,
105-
linkstatic = True,
106-
deps = [
107-
":my_proto_library_cc",
108-
"@com_google_protobuf//:protobuf",
109-
"@pybind11",
110-
],
111-
features = ["asan_runtime_closure_feature"],
112-
)
113-
114-
genrule(
115-
name = "protoclient_so",
116-
srcs = [":protoclient"],
117-
outs = ["protoclient.so"],
118-
cmd = "cp $(location :protoclient) $@",
119-
)
120-
121-
py_binary(
122-
name = "protoclient_tool",
123-
srcs = ["protoclient_tool.py"],
124-
data = [":protoclient.so"],
125-
deps = [],
126-
)
127-
128-
py_test(
129-
name = "protoclient_tool_test",
130-
srcs = ["protoclient_tool_test.py"],
131-
data = [":protoclient.so"],
132-
deps = [],
133-
)
134-
13554
#############################################
13655
# Tests Suite
13756
test_suite(
13857
name = "all",
13958
tests = [
140-
":protoclient_tool_test",
14159
":vector_cuda_test",
14260
],
14361
)

cc/tests/gpu/hello_world.cc

Lines changed: 0 additions & 25 deletions
This file was deleted.

cc/tests/gpu/protoclient.cc

Lines changed: 0 additions & 46 deletions
This file was deleted.

cc/tests/gpu/protoclient_tool.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

cc/tests/gpu/protoclient_tool_test.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

cc/tests/gpu/protogen.cc

Lines changed: 0 additions & 42 deletions
This file was deleted.

cc/tests/gpu/protogen_tool.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)