Skip to main content

simd_info

Function simd_info 

Source
pub fn simd_info() -> SimdInfo
Expand description

Returns a snapshot of the SIMD tier lance is using on this host along with the raw CPU feature flags that drove the decision.

Useful for performance debugging and giving users a way to verify which dispatch tier they are hitting without rebuilding lance. See SimdInfo for the meaning of each field and SimdSupport for the tier values.

ยงExamples

use lance_core::utils::cpu::simd_info;

let info = simd_info();
println!("dispatching to {} on {}", info.tier, info.target_arch);