Skip to main content

provide_driver

Function provide_driver 

Source
pub fn provide_driver(provider: Provider) -> Result<(), LoadError>
Expand description

Serves the CUDA driver’s functions from provider, such as an emulator, instead of loading the driver.

§Errors

Returns LoadError::AlreadyLoaded if a driver function was already called or the driver was already provided.