Commit a8812b4
Use gpu_cpp_unittest for slim CUDA guard tests
Summary:
The `test_cuda_guard` and `test_cuda_stream_guard` targets in `executorch/backends/aoti/slim/cuda/test/` skip at runtime via `GTEST_SKIP()` in `SetUp()` when no CUDA device is available. On CPU-only sandcastle hosts they emit SKIPPED on every run, never accumulate a PASS record, and TestInfra flags them with a `CONTINUOUS_STATE` violation, marking them DISABLED_FAILING and contributing 15 phantom failures to the ai_infra_mobile_platform oncall feed.
Switch the wrapper macro from `cpp_unittest` to `gpu_cpp_unittest`. The GPU wrapper expands the kwargs through `gpu_common.convert_cpp_args`, which adds CI labels and the appropriate `select_accelerator()` so Buck marks the targets incompatible with non-GPU configurations. TestInfra then omits them from CPU schedules entirely instead of running and reporting SKIPPED.
Authored with Claude.
Differential Revision: D1042971301 parent fa857bd commit a8812b4
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments