Skip to main content

DeviceRuntime

Trait DeviceRuntime 

Source
pub trait DeviceRuntime: Runtime<Device = Self::RudaDevice, Server = Self::RudaServer> {
    type RudaDevice: DeviceOps;
    type RudaServer: ComputeServer<Kernel = Box<dyn RudaTask<Self::Compiler>>>;
}
Expand description

Device runtime implementing the tensor backend device contract.

Required Associated Types§

Source

type RudaDevice: DeviceOps

The device that should also implement ruda_tensor::backend::DeviceOps.

Source

type RudaServer: ComputeServer<Kernel = Box<dyn RudaTask<Self::Compiler>>>

The server accepting compiled Kernel tasks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§