pub struct GpuKernel {
pub name: String,
pub device_id: String,
pub stream_id: String,
pub grid_dims: (u32, u32, u32),
pub block_dims: (u32, u32, u32),
pub shared_memory: u32,
}Expand description
GPU kernel execution context
Fields§
§name: StringKernel name
device_id: StringDevice ID
stream_id: StringStream ID
grid_dims: (u32, u32, u32)Grid dimensions
block_dims: (u32, u32, u32)Block dimensions
Shared memory size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuKernel
impl RefUnwindSafe for GpuKernel
impl Send for GpuKernel
impl Sync for GpuKernel
impl Unpin for GpuKernel
impl UnwindSafe for GpuKernel
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
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