pub enum GpuExclusivityClass {
Shared,
SessionExclusive,
DeviceExclusive,
PartitionExclusive,
}Expand description
Per-lease GPU exclusivity class.
Mirrors fabricbios_core::lease_gpu_exclusivity::GpuExclusivityClass at
the SDK layer. See docs/spec/gpu-exclusivity-wire-format.md for the
wire format and docs/spec/resource-isolation-and-exclusivity.md §5.3
for the semantics.
When passed to GpuBuilder::exclusivity, the runtime emits
TLV_LEASE_GPU_EXCLUSIVITY (0x0903) on the LEASE_ALLOC request.
Unsupported classes fail closed — the node rejects the lease.
Variants§
Device may multiplex other tenants.
SessionExclusive
Exclusive residency for the session lifetime.
DeviceExclusive
Whole device for the lease lifetime.
PartitionExclusive
Reserved for future MIG/partition isolation.
Trait Implementations§
Source§impl Clone for GpuExclusivityClass
impl Clone for GpuExclusivityClass
Source§fn clone(&self) -> GpuExclusivityClass
fn clone(&self) -> GpuExclusivityClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GpuExclusivityClass
impl Debug for GpuExclusivityClass
Source§impl PartialEq for GpuExclusivityClass
impl PartialEq for GpuExclusivityClass
impl Copy for GpuExclusivityClass
impl Eq for GpuExclusivityClass
impl StructuralPartialEq for GpuExclusivityClass
Auto Trait Implementations§
impl Freeze for GpuExclusivityClass
impl RefUnwindSafe for GpuExclusivityClass
impl Send for GpuExclusivityClass
impl Sync for GpuExclusivityClass
impl Unpin for GpuExclusivityClass
impl UnwindSafe for GpuExclusivityClass
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more