pub struct Function<'a, 'b> { /* private fields */ }
Expand description
Represents an individual callable Kernel loaded from a Module
Implementations§
Source§impl<'a, 'b> Function<'a, 'b>
impl<'a, 'b> Function<'a, 'b>
Sourcepub fn get_attribute(&self, attribute: FunctionAttribute) -> CudaResult<i32>
pub fn get_attribute(&self, attribute: FunctionAttribute) -> CudaResult<i32>
Returns information about a function.
Sourcepub fn set_attribute(
&mut self,
attribute: FunctionAttribute,
value: i32,
) -> CudaResult<()>
pub fn set_attribute( &mut self, attribute: FunctionAttribute, value: i32, ) -> CudaResult<()>
Sets information about a function.
Sourcepub fn set_cache_config(&mut self, func_cache: FuncCache) -> CudaResult<()>
pub fn set_cache_config(&mut self, func_cache: FuncCache) -> CudaResult<()>
Sets the preferred cache configuration for a device function.
Sets the shared memory configuration for a device function.
Auto Trait Implementations§
impl<'a, 'b> Freeze for Function<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Function<'a, 'b>
impl<'a, 'b> !Send for Function<'a, 'b>
impl<'a, 'b> !Sync for Function<'a, 'b>
impl<'a, 'b> Unpin for Function<'a, 'b>
impl<'a, 'b> UnwindSafe for Function<'a, 'b>
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