Skip to main content

driver_load_error

Function driver_load_error 

Source
pub fn driver_load_error() -> Option<&'static DriverLoadError>
Expand description

Returns the cached DriverLoadError from the first driver-load attempt, if the driver failed to load.

This lets callers programmatically inspect why the driver is unavailable (which library was missing, which symbol failed to resolve, or the cuInit error code) rather than only seeing the coarse CudaError::NotInitialized returned by try_driver. Returns None if the driver loaded successfully or has not been probed yet.