Skip to main content

simulate_spmv_throughput

Function simulate_spmv_throughput 

Source
pub fn simulate_spmv_throughput(n: usize, nnz: usize) -> f64
Expand description

Estimate SpMV throughput in GFLOPS given matrix dimensions and nnz count.

Uses a simple roofline model: bandwidth-bound at 100 GB/s with 12 bytes/flop.