pub struct CudaKernel {
pub name: String,
pub params: Vec<CudaParam>,
pub shared_mem_decls: Vec<SharedMemDecl>,
pub body: Vec<CudaStmt>,
pub launch_bounds: Option<LaunchBounds>,
}Expand description
A CUDA kernel (__global__ function).
Fields§
§name: StringKernel name
params: Vec<CudaParam>Parameter list
Shared memory declarations (emitted at the top of the kernel body)
body: Vec<CudaStmt>Kernel body statements
launch_bounds: Option<LaunchBounds>Optional __launch_bounds__ annotation
Implementations§
Source§impl CudaKernel
impl CudaKernel
Append a shared-memory declaration.
Sourcepub fn with_launch_bounds(self, lb: LaunchBounds) -> Self
pub fn with_launch_bounds(self, lb: LaunchBounds) -> Self
Set launch bounds.
Trait Implementations§
Source§impl Clone for CudaKernel
impl Clone for CudaKernel
Source§fn clone(&self) -> CudaKernel
fn clone(&self) -> CudaKernel
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 moreSource§impl Debug for CudaKernel
impl Debug for CudaKernel
Source§impl PartialEq for CudaKernel
impl PartialEq for CudaKernel
impl StructuralPartialEq for CudaKernel
Auto Trait Implementations§
impl Freeze for CudaKernel
impl RefUnwindSafe for CudaKernel
impl Send for CudaKernel
impl Sync for CudaKernel
impl Unpin for CudaKernel
impl UnsafeUnpin for CudaKernel
impl UnwindSafe for CudaKernel
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