public final class CudaGrid extends Object
CudaGrid
class represents a kernel launch configuration.Modifier and Type | Field and Description |
---|---|
int |
blockDimX
The size of the thread block in the x dimension.
|
int |
blockDimY
The size of the thread block in the y dimension.
|
int |
blockDimZ
The size of the thread block in the z dimension.
|
int |
gridDimX
The size of the grid in the x dimension.
|
int |
gridDimY
The size of the grid in the y dimension.
|
int |
gridDimZ
The size of the grid in the z dimension.
|
int |
sharedMemBytes
The number of bytes of shared memory to allocate to each thread block.
|
CudaStream |
stream
The stream on which the kernel should be queued
(or null for the default stream).
|
Constructor and Description |
---|
CudaGrid(Dim3 gridDim,
Dim3 blockDim)
Creates a grid with the specified dimensions, with no shared memory
on the default stream.
|
CudaGrid(Dim3 gridDim,
Dim3 blockDim,
CudaStream stream)
Creates a grid with the specified dimensions with no shared memory
on the specified stream.
|
CudaGrid(Dim3 gridDim,
Dim3 blockDim,
int sharedMemBytes)
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(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,
CudaStream stream)
Creates a grid with the specified x dimensions with no shared memory
on the specified 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.
|
public final int blockDimX
public final int blockDimY
public final int blockDimZ
public final int gridDimX
public final int gridDimY
public final int gridDimZ
public final int sharedMemBytes
public final CudaStream stream
public CudaGrid(Dim3 gridDim, Dim3 blockDim)
gridDim
- the dimensions of the gridblockDim
- the dimensions of the thread blockpublic CudaGrid(Dim3 gridDim, Dim3 blockDim, CudaStream stream)
gridDim
- the dimensions of the gridblockDim
- the dimensions of the thread blockstream
- the stream on which the kernel should be queued
(or null for the default stream)public CudaGrid(Dim3 gridDim, Dim3 blockDim, int sharedMemBytes)
gridDim
- the dimensions of the gridblockDim
- the dimensions of the thread blocksharedMemBytes
- the number of bytes of shared memory to allocate to each thread blockpublic CudaGrid(Dim3 gridDim, Dim3 blockDim, int sharedMemBytes, CudaStream stream)
gridDim
- the dimensions of the gridblockDim
- the dimensions of the thread blocksharedMemBytes
- the number of bytes of shared memory to allocate to each thread blockstream
- the stream on which the kernel should be queued
(or null for the default stream)public CudaGrid(int gridDim, int blockDim)
gridDim
- the x dimension of the gridblockDim
- the x dimension of the thread blockpublic CudaGrid(int gridDim, int blockDim, CudaStream stream)
gridDim
- the x dimension of the gridblockDim
- the x dimension of the thread blockstream
- the stream on which the kernel should be queued
(or null for the default stream)public CudaGrid(int gridDim, int blockDim, int sharedMemBytes)
gridDim
- the x dimension of the gridblockDim
- the x dimension of the thread blocksharedMemBytes
- the number of bytes of shared memory to allocate to each thread blockpublic CudaGrid(int gridDim, int blockDim, int sharedMemBytes, CudaStream stream)
gridDim
- the x dimension of the gridblockDim
- the x dimension of the thread blocksharedMemBytes
- the number of bytes of shared memory to allocate to each thread blockstream
- the stream on which the kernel should be queued
(or null for the default stream)Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2013, 2025 IBM Corp. and others.