gpu_metrics_span

Function gpu_metrics_span 

Source
pub fn gpu_metrics_span<R, F: FnOnce() -> R>(
    name: impl Into<Cow<'static, str>>,
    f: F,
) -> Result<R, CudaError>
Expand description

A GPU-aware span that collects a gauge metric using CUDA events.