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§
Sourcetype RudaDevice: DeviceOps
type RudaDevice: DeviceOps
The device that should also implement ruda_tensor::backend::DeviceOps.
Sourcetype RudaServer: ComputeServer<Kernel = Box<dyn RudaTask<Self::Compiler>>>
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".