Skip to main content

Module ulp

Module ulp 

Source
Expand description

ULP (Unit in the Last Place) distance utilities for floating-point comparison.

Used to verify SIMD and PTX kernels produce results within acceptable tolerance of the scalar reference implementation.

Functions§

assert_ulp_eq
Assert that two f32 slices are equal within the given ULP tolerance.
ulp_distance
Compute the ULP distance between two f32 values.