pub struct SynchronizationManager { /* private fields */ }Expand description
Synchronization manager for multi-GPU operations
Implementations§
Source§impl SynchronizationManager
impl SynchronizationManager
pub fn new() -> Self
pub fn create_barrier( &mut self, name: String, participant_count: u32, ) -> Result<(), SimdError>
pub fn wait_barrier( &mut self, name: &str, device_id: u32, ) -> Result<(), SimdError>
pub fn create_event( &mut self, name: String, device_id: u32, ) -> Result<(), SimdError>
pub fn record_event(&mut self, name: &str) -> Result<(), SimdError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SynchronizationManager
impl !Send for SynchronizationManager
impl !Sync for SynchronizationManager
impl !UnwindSafe for SynchronizationManager
impl Freeze for SynchronizationManager
impl Unpin for SynchronizationManager
impl UnsafeUnpin for SynchronizationManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more