Skip to main content

provide_runtime

Function provide_runtime 

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

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

§Errors

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