pub enum NvrtcMsg {
Compile {
src: String,
kernel_name: String,
opts: NvrtcOpts,
reply: Sender<Result<KernelHandle, GpuError>>,
},
CompileAsync {
src: String,
kernel_name: String,
opts: NvrtcOpts,
reply: Sender<Result<KernelHandle, GpuError>>,
},
Launch {
kernel: KernelHandle,
args: Vec<KernelArg>,
cfg: LaunchConfig,
reply: Sender<Result<(), GpuError>>,
},
}Variants§
Compile
Fields
§
reply: Sender<Result<KernelHandle, GpuError>>CompileAsync
Phase 5: identical contract to NvrtcMsg::Compile except the
NVRTC call itself is dispatched onto a Tokio blocking task so a
10-second template instantiation doesn’t stall the actor mailbox.
The reply is delivered from the spawned task once compilation
completes.
Fields
§
reply: Sender<Result<KernelHandle, GpuError>>Launch
Auto Trait Implementations§
impl Freeze for NvrtcMsg
impl !RefUnwindSafe for NvrtcMsg
impl Send for NvrtcMsg
impl Sync for NvrtcMsg
impl Unpin for NvrtcMsg
impl UnsafeUnpin for NvrtcMsg
impl !UnwindSafe for NvrtcMsg
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