java.lang.Object
com.ibm.cuda.CudaGrid
The 
CudaGrid class represents a kernel launch configuration.- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal intThe size of the thread block in the x dimension.final intThe size of the thread block in the y dimension.final intThe size of the thread block in the z dimension.final intThe size of the grid in the x dimension.final intThe size of the grid in the y dimension.final intThe size of the grid in the z dimension.final intThe number of bytes of shared memory to allocate to each thread block.final CudaStreamThe stream on which the kernel should be queued (or null for the default stream).
- 
Constructor SummaryConstructorsConstructorDescriptionCudaGrid(int gridDim, int blockDim) Creates a grid with the specified x dimensions with no shared memory on the default stream.CudaGrid(int gridDim, int blockDim, int sharedMemBytes) Creates a grid with the specified x dimensions and shared memory size on the default stream.CudaGrid(int gridDim, int blockDim, int sharedMemBytes, CudaStream stream) Creates a grid with the specified x dimensions and shared memory size on the specified stream.CudaGrid(int gridDim, int blockDim, CudaStream stream) Creates a grid with the specified x dimensions with no shared memory on the specified stream.Creates a grid with the specified dimensions, with no shared memory on the default stream.Creates a grid with the specified dimensions and shared memory size on the default stream.CudaGrid(Dim3 gridDim, Dim3 blockDim, int sharedMemBytes, CudaStream stream) Creates a grid with the specified dimensions and shared memory size on the specified stream.CudaGrid(Dim3 gridDim, Dim3 blockDim, CudaStream stream) Creates a grid with the specified dimensions with no shared memory on the specified stream.
- 
Method Summary
- 
Field Details- 
blockDimXpublic final int blockDimXThe size of the thread block in the x dimension.
- 
blockDimYpublic final int blockDimYThe size of the thread block in the y dimension.
- 
blockDimZpublic final int blockDimZThe size of the thread block in the z dimension.
- 
gridDimXpublic final int gridDimXThe size of the grid in the x dimension.
- 
gridDimYpublic final int gridDimYThe size of the grid in the y dimension.
- 
gridDimZpublic final int gridDimZThe size of the grid in the z dimension.
- 
streamThe stream on which the kernel should be queued (or null for the default stream).
 
- 
- 
Constructor Details- 
CudaGridCreates a grid with the specified dimensions, with no shared memory on the default stream.- Parameters:
- gridDim- the dimensions of the grid
- blockDim- the dimensions of the thread block
 
- 
CudaGridCreates a grid with the specified dimensions with no shared memory on the specified stream.- Parameters:
- gridDim- the dimensions of the grid
- blockDim- the dimensions of the thread block
- stream- the stream on which the kernel should be queued (or null for the default stream)
 
- 
CudaGridCreates a grid with the specified dimensions and shared memory size on the default stream.- Parameters:
- gridDim- the dimensions of the grid
- blockDim- the dimensions of the thread block
- sharedMemBytes- the number of bytes of shared memory to allocate to each thread block
 
- 
CudaGridCreates a grid with the specified dimensions and shared memory size on the specified stream.- Parameters:
- gridDim- the dimensions of the grid
- blockDim- the dimensions of the thread block
- sharedMemBytes- the number of bytes of shared memory to allocate to each thread block
- stream- the stream on which the kernel should be queued (or null for the default stream)
 
- 
CudaGridpublic CudaGrid(int gridDim, int blockDim) Creates a grid with the specified x dimensions with no shared memory on the default stream. The y and z dimensions are set to 1.- Parameters:
- gridDim- the x dimension of the grid
- blockDim- the x dimension of the thread block
 
- 
CudaGridCreates a grid with the specified x dimensions with no shared memory on the specified stream. The y and z dimensions are set to 1.- Parameters:
- gridDim- the x dimension of the grid
- blockDim- the x dimension of the thread block
- stream- the stream on which the kernel should be queued (or null for the default stream)
 
- 
CudaGridpublic CudaGrid(int gridDim, int blockDim, int sharedMemBytes) Creates a grid with the specified x dimensions and shared memory size on the default stream. The y and z dimensions are set to 1.- Parameters:
- gridDim- the x dimension of the grid
- blockDim- the x dimension of the thread block
- sharedMemBytes- the number of bytes of shared memory to allocate to each thread block
 
- 
CudaGridCreates a grid with the specified x dimensions and shared memory size on the specified stream. The y and z dimensions are set to 1.- Parameters:
- gridDim- the x dimension of the grid
- blockDim- the x dimension of the thread block
- sharedMemBytes- the number of bytes of shared memory to allocate to each thread block
- stream- the stream on which the kernel should be queued (or null for the default stream)
 
 
-