pub struct ChildKernelSpec {
pub name: String,
pub param_types: Vec<PtxType>,
pub grid_dim: GridSpec,
pub block_dim: Dim3,
pub shared_mem_bytes: u32,
}Expand description
Specification for a child kernel to be launched from device code.
Describes the kernel signature, grid/block dimensions, and shared memory requirements needed to generate the device-side launch PTX.
Fields§
§name: StringName of the child kernel function.
param_types: Vec<PtxType>PTX types of the kernel parameters, in order.
grid_dim: GridSpecHow the grid dimensions are determined.
block_dim: Dim3Block dimensions (threads per block).
Dynamic shared memory in bytes.
Trait Implementations§
Source§impl Clone for ChildKernelSpec
impl Clone for ChildKernelSpec
Source§fn clone(&self) -> ChildKernelSpec
fn clone(&self) -> ChildKernelSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChildKernelSpec
impl RefUnwindSafe for ChildKernelSpec
impl Send for ChildKernelSpec
impl Sync for ChildKernelSpec
impl Unpin for ChildKernelSpec
impl UnsafeUnpin for ChildKernelSpec
impl UnwindSafe for ChildKernelSpec
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