[−][src]Struct rustacuda::function::GridSize
Dimensions of a grid, or the number of thread blocks in a kernel launch.
Each component of a GridSize must be at least 1. The maximum size depends on your device's
compute capability, but maximums of x = (2^31)-1, y = 65535, z = 65535 are common. Launching
a kernel with a grid size greater than these limits will cause an error.
Fields
x: u32Width of grid in blocks
y: u32Height of grid in blocks
z: u32Depth of grid in blocks
Implementations
impl GridSize[src]
pub fn x(x: u32) -> GridSize[src]
Create a one-dimensional grid of x blocks
pub fn xy(x: u32, y: u32) -> GridSize[src]
Create a two-dimensional grid of x * y blocks
pub fn xyz(x: u32, y: u32, z: u32) -> GridSize[src]
Create a three-dimensional grid of x * y * z blocks
Trait Implementations
impl Clone for GridSize[src]
impl Debug for GridSize[src]
impl Eq for GridSize[src]
impl<'a> From<&'a GridSize> for GridSize[src]
impl From<(u32, u32, u32)> for GridSize[src]
impl From<(u32, u32)> for GridSize[src]
impl From<u32> for GridSize[src]
impl PartialEq<GridSize> for GridSize[src]
impl StructuralEq for GridSize[src]
impl StructuralPartialEq for GridSize[src]
Auto Trait Implementations
impl RefUnwindSafe for GridSize
impl Send for GridSize
impl Sync for GridSize
impl Unpin for GridSize
impl UnwindSafe for GridSize
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,