Commit e9b52ca
committed
Discard auto_viz_demo's trace output in its CTest test
auto_viz's pipelines are built with trace_all, but auto_viz_demo.cpp
never sets HL_TRACE_FILE, so Halide's default trace handler falls back
to formatting every load/store/produce/consume event as plain text via
halide_print. For even the small test image that's tens of millions of
lines (multiple GB) of stdout. Direct execution is merely slow, but a
test runner that captures/streams that output (e.g. `ctest -V`, as the
buildbot uses) can burn through the entire test timeout on it.
Point HL_TRACE_FILE at the null device for the auto_viz_demo test so
it exercises the same binary trace-writing path (still a meaningful
check that trace_all pipelines run) while discarding the output almost
instantly.1 parent 071797a commit e9b52ca
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
| |||
48 | 65 | | |
49 | 66 | | |
50 | 67 | | |
| 68 | + | |
51 | 69 | | |
52 | 70 | | |
53 | 71 | | |
0 commit comments