pub struct ServerUtilities<Server>where
Server: ComputeServer,{
pub properties: DeviceProperties,
pub properties_hash: u64,
pub info: <Server as ComputeServer>::Info,
pub logger: Arc<ServerLogger>,
pub layout_policy: <Server as ComputeServer>::MemoryLayoutPolicy,
pub check_mode: BoundsCheckMode,
}Expand description
Contains many different types that are useful for server implementations and compute clients.
Fields§
§properties: DevicePropertiesInformation shared between all servers.
properties_hash: u64Stable hash of the device properties
info: <Server as ComputeServer>::InfoInformation specific to the current server.
logger: Arc<ServerLogger>The logger based on global cubecl configs.
layout_policy: <Server as ComputeServer>::MemoryLayoutPolicyHow to create the allocation.
check_mode: BoundsCheckModeHow to enforce bounds checking on kernels.
Implementations§
Source§impl<S> ServerUtilities<S>where
S: ComputeServer,
impl<S> ServerUtilities<S>where
S: ComputeServer,
Sourcepub fn new(
properties: DeviceProperties,
logger: Arc<ServerLogger>,
info: <S as ComputeServer>::Info,
allocator: <S as ComputeServer>::MemoryLayoutPolicy,
) -> ServerUtilities<S>
pub fn new( properties: DeviceProperties, logger: Arc<ServerLogger>, info: <S as ComputeServer>::Info, allocator: <S as ComputeServer>::MemoryLayoutPolicy, ) -> ServerUtilities<S>
Creates a new server utilities.
Trait Implementations§
Auto Trait Implementations§
impl<Server> Freeze for ServerUtilities<Server>where
<Server as ComputeServer>::Info: Freeze,
<Server as ComputeServer>::MemoryLayoutPolicy: Freeze,
impl<Server> RefUnwindSafe for ServerUtilities<Server>where
<Server as ComputeServer>::Info: RefUnwindSafe,
<Server as ComputeServer>::MemoryLayoutPolicy: RefUnwindSafe,
impl<Server> Send for ServerUtilities<Server>
impl<Server> Sync for ServerUtilities<Server>
impl<Server> Unpin for ServerUtilities<Server>
impl<Server> UnsafeUnpin for ServerUtilities<Server>where
<Server as ComputeServer>::Info: UnsafeUnpin,
<Server as ComputeServer>::MemoryLayoutPolicy: UnsafeUnpin,
impl<Server> UnwindSafe for ServerUtilities<Server>where
<Server as ComputeServer>::Info: UnwindSafe,
<Server as ComputeServer>::MemoryLayoutPolicy: UnwindSafe,
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