Repository navigation
Conversation
The test compares the time a task waiting on an event takes with a drain time measured beforehand. When other work shares the device, such as the parallel workers of Metal.jl's test suite, one drain can take several times as long as the next: on Metal.jl CI, the reference drain took 2.07 s and the wait 0.59 s, failing the check against a third of it. Time the wait three times and compare the longest with the shortest drain, measured both before and after. A missing wait still returns in milliseconds every time (10 ms against a 71 ms threshold on an M1).
Benchmark resultsCompared with a585449d8, the merge base. Times are the minimum time of every benchmark. A change is unusual when it exceeds both three times the benchmark's typical change between consecutive runs on the default branch and a minimum per category (performance 3%, latency 5%, applications 3%, other 3%). A benchmark that starts or stops allocating is listed however few the allocations. A single run can still be a fluke, so rerun before drawing conclusions.
All benchmarks
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1005 +/- ##
==========================================
- Coverage 90.79% 89.21% -1.59%
==========================================
Files 33 33
Lines 3293 3005 -288
==========================================
- Hits 2990 2681 -309
- Misses 303 324 +21 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The
ordered across tasksevents test compares the time a task that waits on an event takes with a drain time measured beforehand, and requires at least a third of it. When other work shares the device, one drain can take several times as long as the next. On Metal.jl's CI, whose test suite runs four workers on one GPU, the reference drain of 20 launches of about 10 ms took 2.07 s, and the wait 0.59 s, which failed the check (https://buildkite.com/julialang/metal-dot-jl/builds/4125).The wait is now timed three times, and the longest of those is compared with the shortest drain, timed both before and after. A missing wait still returns in milliseconds every time: with
wait_eventreplaced by a no-op on an M1, the waits took 10 ms against a threshold of 71 ms, and the test fails as before. The test takes about 4 s longer.I couldn't reproduce the failure locally, even with another process loading the GPU in bursts, so the change rests on the CI numbers above. Bumps KernelInterface to 0.4.8, since back ends run this test suite from the released package.