#[non_exhaustive]pub struct GPUSharingConfig {
pub max_shared_clients_per_gpu: i64,
pub gpu_sharing_strategy: Option<GPUSharingStrategy>,
}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
Sets the value of max_shared_clients_per_gpu.
Sourcepub fn set_gpu_sharing_strategy<T: Into<Option<GPUSharingStrategy>>>(
self,
v: T,
) -> Self
pub fn set_gpu_sharing_strategy<T: Into<Option<GPUSharingStrategy>>>( self, v: T, ) -> Self
Sets 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 copy 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<'de> Deserialize<'de> for GPUSharingConfigwhere
GPUSharingConfig: Default,
impl<'de> Deserialize<'de> for GPUSharingConfigwhere
GPUSharingConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for GPUSharingConfig
impl Message for GPUSharingConfig
Source§impl PartialEq for GPUSharingConfig
impl PartialEq for GPUSharingConfig
Source§impl Serialize for GPUSharingConfig
impl Serialize 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