MCPcopy Create free account
hub / github.com/evilsocket/cake / vulkan_dispatch_overhead

Function vulkan_dispatch_overhead

cake-core/benches/bench_vulkan.rs:22–28  ·  view source on GitHub ↗
(bencher: divan::Bencher)

Source from the content-addressed store, hash-verified

20
21#[divan::bench]
22fn 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

Callers

nothing calls this directly

Calls 3

vkFunction · 0.85
cpu_tensorFunction · 0.85
silu_mulMethod · 0.45

Tested by

no test coverage detected