pub struct GpuWorkItem {
pub id: usize,
pub cost: u64,
pub program: Program,
pub inputs: Vec<Vec<u8>>,
pub config: DispatchConfig,
}Expand description
One executable multi-GPU work packet.
Fields§
§id: usizeStable work identifier returned with the output.
cost: u64Relative scheduling cost.
program: ProgramProgram to compile and dispatch on the selected adapter.
inputs: Vec<Vec<u8>>Input buffers for the dispatch.
config: DispatchConfigDispatch policy for this item.
Auto Trait Implementations§
impl !Freeze for GpuWorkItem
impl !RefUnwindSafe for GpuWorkItem
impl !UnwindSafe for GpuWorkItem
impl Send for GpuWorkItem
impl Sync for GpuWorkItem
impl Unpin for GpuWorkItem
impl UnsafeUnpin for GpuWorkItem
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