Skip to main content

NixlCompatible

Trait NixlCompatible 

Source
pub trait NixlCompatible {
    // Required method
    fn nixl_params(&self) -> (*const u8, usize, MemType, u64);
}
Expand description

Trait for storage types that can be registered with NIXL.

Required Methods§

Source

fn nixl_params(&self) -> (*const u8, usize, MemType, u64)

Get parameters needed for NIXL registration.

Returns (ptr, size, mem_type, device_id)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl NixlCompatible for Arc<dyn NixlMemory + Send + Sync>

Source§

impl NixlCompatible for Arc<dyn TensorDescriptor + Send + Sync>

Source§

impl NixlCompatible for Arc<dyn TensorDescriptor>

Implementors§