Skip to main content

register_handlers

Function register_handlers 

Source
pub fn register_handlers(plugin: Plugin, platform: &str) -> Result<()>
Expand description

Registers ruxla’s linear algebra handlers with a plugin for platform: "Host" for CPU plugins, or "CUDA" (whose handlers copy the buffers to the host and back, and the cuSOLVER handlers that compute on the device, ruxla_cusolver_*). Registering again for the same plugin and platform does nothing.

§Errors

Returns an error if the plugin has no FFI extension or rejects a handler.