(bencher: divan::Bencher)
| 20 | |
| 21 | #[divan::bench] |
| 22 | fn vulkan_dispatch_overhead(bencher: divan::Bencher) { |
| 23 | let backend = vk(); |
| 24 | // Tiny tensor to measure fixed dispatch cost (not data transfer) |
| 25 | let a = cpu_tensor(&[1, 1, 16], 1000); |
| 26 | let b = cpu_tensor(&[1, 1, 16], 1001); |
| 27 | bencher.bench_local(|| backend.silu_mul(&a, &b).unwrap()); |
| 28 | } |
| 29 | |
| 30 | // ── GPU matmul at model sizes ──────────────────────────────────────── |
| 31 | // Qwen3-0.6B: hidden=1024, intermediate=3072, head_dim=128 |
nothing calls this directly
no test coverage detected