Skip to main content

module_get_function

Function module_get_function 

Source
pub fn module_get_function(
    module: CudaModule,
    name: &str,
) -> CudaRtResult<CudaFunction>
Expand description

Get a function handle by name from a loaded module.

Mirrors the driver’s cuModuleGetFunction.

§Errors

Returns CudaRtError::SymbolNotFound if the function does not exist.