Skip to main content

Module gpu_error

Module gpu_error 

Source
Expand description

Typed error for the src/gpu/* modules.

Every fallible path inside the GPU layer (driver dlopen, CUDA driver API calls, cuBLAS / cuSPARSE / cuSOLVER handle lifecycle, on-device allocations and memcpys, throughput calibration) constructs one of the variants below. Module-internal Result<_, String> surfaces convert via From<GpuError> for String, which preserves the exact bytes of the prior format! / to_string payloads so logged messages are byte-equivalent to the pre-refactor strings.

Only the variants actually constructed by the GPU layer are kept.

Enums§

GpuError
Typed error for src/gpu/*.rs operations.

Traits§

GpuResultExt
Extension trait that attaches GPU-call context to any Result<T, E> whose error implements Display.