#[non_exhaustive]pub struct GPUSharingConfig {
pub max_shared_clients_per_gpu: i64,
pub gpu_sharing_strategy: Option<GPUSharingStrategy>,
/* private fields */
}Expand description
GPUSharingConfig represents the GPU sharing configuration for Hardware Accelerators.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.The max number of containers that can share a physical GPU.
gpu_sharing_strategy: Option<GPUSharingStrategy>The type of GPU sharing strategy to enable on the GPU node.
Implementations§
Source§impl GPUSharingConfig
impl GPUSharingConfig
pub fn new() -> Self
Sets the value of max_shared_clients_per_gpu.
Sourcepub fn set_gpu_sharing_strategy<T>(self, v: T) -> Selfwhere
T: Into<GPUSharingStrategy>,
pub fn set_gpu_sharing_strategy<T>(self, v: T) -> Selfwhere
T: Into<GPUSharingStrategy>,
Sets the value of gpu_sharing_strategy.
Sourcepub fn set_or_clear_gpu_sharing_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<GPUSharingStrategy>,
pub fn set_or_clear_gpu_sharing_strategy<T>(self, v: Option<T>) -> Selfwhere
T: Into<GPUSharingStrategy>,
Sets or clears the value of gpu_sharing_strategy.
Trait Implementations§
Source§impl Clone for GPUSharingConfig
impl Clone for GPUSharingConfig
Source§fn clone(&self) -> GPUSharingConfig
fn clone(&self) -> GPUSharingConfig
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 GPUSharingConfig
impl Debug for GPUSharingConfig
Source§impl Default for GPUSharingConfig
impl Default for GPUSharingConfig
Source§fn default() -> GPUSharingConfig
fn default() -> GPUSharingConfig
Returns the “default value” for a type. Read more
Source§impl Message for GPUSharingConfig
impl Message for GPUSharingConfig
Source§impl PartialEq for GPUSharingConfig
impl PartialEq for GPUSharingConfig
impl StructuralPartialEq for GPUSharingConfig
Auto Trait Implementations§
impl Freeze for GPUSharingConfig
impl RefUnwindSafe for GPUSharingConfig
impl Send for GPUSharingConfig
impl Sync for GPUSharingConfig
impl Unpin for GPUSharingConfig
impl UnwindSafe for GPUSharingConfig
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