public class CUDA_LAUNCH_PARAMS
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
function – Kernel to launchgridDimX – Width of grid in blocksgridDimY – Height of grid in blocksgridDimZ – Depth of grid in blocksblockDimX – X dimension of each thread blockblockDimY – Y dimension of each thread blockblockDimZ – Z dimension of each thread blocksharedMemBytes – Dynamic shared-memory size per thread block in byteshStream – Stream identifierkernelParams – Array of pointers to kernel parameters
struct CUDA_LAUNCH_PARAMS {
CUfunction function;
unsigned int gridDimX;
unsigned int gridDimY;
unsigned int gridDimZ;
unsigned int blockDimX;
unsigned int blockDimY;
unsigned int blockDimZ;
unsigned int sharedMemBytes;
CUstream hStream;
void ** kernelParams;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_LAUNCH_PARAMS.Buffer
An array of
CUDA_LAUNCH_PARAMS structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BLOCKDIMX
The struct member offsets.
|
static int |
BLOCKDIMY
The struct member offsets.
|
static int |
BLOCKDIMZ
The struct member offsets.
|
static int |
FUNCTION
The struct member offsets.
|
static int |
GRIDDIMX
The struct member offsets.
|
static int |
GRIDDIMY
The struct member offsets.
|
static int |
GRIDDIMZ
The struct member offsets.
|
static int |
HSTREAM
The struct member offsets.
|
static int |
KERNELPARAMS
The struct member offsets.
|
static int |
SHAREDMEMBYTES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CUDA_LAUNCH_PARAMS(java.nio.ByteBuffer container)
Creates a
CUDA_LAUNCH_PARAMS instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
blockDimX()
Returns the value of the
blockDimX field. |
CUDA_LAUNCH_PARAMS |
blockDimX(int value)
Sets the specified value to the
blockDimX field. |
int |
blockDimY()
Returns the value of the
blockDimY field. |
CUDA_LAUNCH_PARAMS |
blockDimY(int value)
Sets the specified value to the
blockDimY field. |
int |
blockDimZ()
Returns the value of the
blockDimZ field. |
CUDA_LAUNCH_PARAMS |
blockDimZ(int value)
Sets the specified value to the
blockDimZ field. |
static CUDA_LAUNCH_PARAMS |
calloc()
Returns a new
CUDA_LAUNCH_PARAMS instance allocated with memCalloc. |
static CUDA_LAUNCH_PARAMS.Buffer |
calloc(int capacity)
Returns a new
CUDA_LAUNCH_PARAMS.Buffer instance allocated with memCalloc. |
static CUDA_LAUNCH_PARAMS |
callocStack()
Returns a new
CUDA_LAUNCH_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_LAUNCH_PARAMS.Buffer |
callocStack(int capacity)
Returns a new
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_LAUNCH_PARAMS.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_LAUNCH_PARAMS |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_LAUNCH_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_LAUNCH_PARAMS |
create()
Returns a new
CUDA_LAUNCH_PARAMS instance allocated with BufferUtils. |
static CUDA_LAUNCH_PARAMS.Buffer |
create(int capacity)
Returns a new
CUDA_LAUNCH_PARAMS.Buffer instance allocated with BufferUtils. |
static CUDA_LAUNCH_PARAMS |
create(long address)
Returns a new
CUDA_LAUNCH_PARAMS instance for the specified memory address. |
static CUDA_LAUNCH_PARAMS.Buffer |
create(long address,
int capacity)
Create a
CUDA_LAUNCH_PARAMS.Buffer instance at the specified memory. |
static CUDA_LAUNCH_PARAMS |
createSafe(long address)
|
static CUDA_LAUNCH_PARAMS.Buffer |
createSafe(long address,
int capacity)
|
long |
function()
Returns the value of the
function field. |
CUDA_LAUNCH_PARAMS |
function(long value)
Sets the specified value to the
function field. |
int |
gridDimX()
Returns the value of the
gridDimX field. |
CUDA_LAUNCH_PARAMS |
gridDimX(int value)
Sets the specified value to the
gridDimX field. |
int |
gridDimY()
Returns the value of the
gridDimY field. |
CUDA_LAUNCH_PARAMS |
gridDimY(int value)
Sets the specified value to the
gridDimY field. |
int |
gridDimZ()
Returns the value of the
gridDimZ field. |
CUDA_LAUNCH_PARAMS |
gridDimZ(int value)
Sets the specified value to the
gridDimZ field. |
long |
hStream()
Returns the value of the
hStream field. |
CUDA_LAUNCH_PARAMS |
hStream(long value)
Sets the specified value to the
hStream field. |
org.lwjgl.PointerBuffer |
kernelParams(int capacity)
Returns a
PointerBuffer view of the data pointed to by the kernelParams field. |
CUDA_LAUNCH_PARAMS |
kernelParams(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the kernelParams field. |
static CUDA_LAUNCH_PARAMS |
malloc()
Returns a new
CUDA_LAUNCH_PARAMS instance allocated with memAlloc. |
static CUDA_LAUNCH_PARAMS.Buffer |
malloc(int capacity)
Returns a new
CUDA_LAUNCH_PARAMS.Buffer instance allocated with memAlloc. |
static CUDA_LAUNCH_PARAMS |
mallocStack()
Returns a new
CUDA_LAUNCH_PARAMS instance allocated on the thread-local MemoryStack. |
static CUDA_LAUNCH_PARAMS.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_LAUNCH_PARAMS.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the specified MemoryStack. |
static CUDA_LAUNCH_PARAMS |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_LAUNCH_PARAMS instance allocated on the specified MemoryStack. |
static int |
nblockDimX(long struct)
Unsafe version of
blockDimX(). |
static void |
nblockDimX(long struct,
int value)
Unsafe version of
blockDimX. |
static int |
nblockDimY(long struct)
Unsafe version of
blockDimY(). |
static void |
nblockDimY(long struct,
int value)
Unsafe version of
blockDimY. |
static int |
nblockDimZ(long struct)
Unsafe version of
blockDimZ(). |
static void |
nblockDimZ(long struct,
int value)
Unsafe version of
blockDimZ. |
static long |
nfunction(long struct)
Unsafe version of
function(). |
static void |
nfunction(long struct,
long value)
Unsafe version of
function. |
static int |
ngridDimX(long struct)
Unsafe version of
gridDimX(). |
static void |
ngridDimX(long struct,
int value)
Unsafe version of
gridDimX. |
static int |
ngridDimY(long struct)
Unsafe version of
gridDimY(). |
static void |
ngridDimY(long struct,
int value)
Unsafe version of
gridDimY. |
static int |
ngridDimZ(long struct)
Unsafe version of
gridDimZ(). |
static void |
ngridDimZ(long struct,
int value)
Unsafe version of
gridDimZ. |
static long |
nhStream(long struct)
Unsafe version of
hStream(). |
static void |
nhStream(long struct,
long value)
Unsafe version of
hStream. |
static org.lwjgl.PointerBuffer |
nkernelParams(long struct,
int capacity)
Unsafe version of
kernelParams. |
static void |
nkernelParams(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
kernelParams. |
static int |
nsharedMemBytes(long struct)
Unsafe version of
sharedMemBytes(). |
static void |
nsharedMemBytes(long struct,
int value)
Unsafe version of
sharedMemBytes. |
CUDA_LAUNCH_PARAMS |
set(CUDA_LAUNCH_PARAMS src)
Copies the specified struct data to this struct.
|
CUDA_LAUNCH_PARAMS |
set(long function,
int gridDimX,
int gridDimY,
int gridDimZ,
int blockDimX,
int blockDimY,
int blockDimZ,
int sharedMemBytes,
long hStream,
org.lwjgl.PointerBuffer kernelParams)
Initializes this struct with the specified values.
|
int |
sharedMemBytes()
Returns the value of the
sharedMemBytes field. |
CUDA_LAUNCH_PARAMS |
sharedMemBytes(int value)
Sets the specified value to the
sharedMemBytes field. |
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int FUNCTION
public static final int GRIDDIMX
public static final int GRIDDIMY
public static final int GRIDDIMZ
public static final int BLOCKDIMX
public static final int BLOCKDIMY
public static final int BLOCKDIMZ
public static final int SHAREDMEMBYTES
public static final int HSTREAM
public static final int KERNELPARAMS
public CUDA_LAUNCH_PARAMS(java.nio.ByteBuffer container)
CUDA_LAUNCH_PARAMS instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long function()
function field.public int gridDimX()
gridDimX field.public int gridDimY()
gridDimY field.public int gridDimZ()
gridDimZ field.public int blockDimX()
blockDimX field.public int blockDimY()
blockDimY field.public int blockDimZ()
blockDimZ field.public int sharedMemBytes()
sharedMemBytes field.public long hStream()
hStream field.public org.lwjgl.PointerBuffer kernelParams(int capacity)
PointerBuffer view of the data pointed to by the kernelParams field.capacity - the number of elements in the returned bufferpublic CUDA_LAUNCH_PARAMS function(long value)
function field.public CUDA_LAUNCH_PARAMS gridDimX(int value)
gridDimX field.public CUDA_LAUNCH_PARAMS gridDimY(int value)
gridDimY field.public CUDA_LAUNCH_PARAMS gridDimZ(int value)
gridDimZ field.public CUDA_LAUNCH_PARAMS blockDimX(int value)
blockDimX field.public CUDA_LAUNCH_PARAMS blockDimY(int value)
blockDimY field.public CUDA_LAUNCH_PARAMS blockDimZ(int value)
blockDimZ field.public CUDA_LAUNCH_PARAMS sharedMemBytes(int value)
sharedMemBytes field.public CUDA_LAUNCH_PARAMS hStream(long value)
hStream field.public CUDA_LAUNCH_PARAMS kernelParams(org.lwjgl.PointerBuffer value)
PointerBuffer to the kernelParams field.public CUDA_LAUNCH_PARAMS set(long function, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, long hStream, org.lwjgl.PointerBuffer kernelParams)
public CUDA_LAUNCH_PARAMS set(CUDA_LAUNCH_PARAMS src)
src - the source structpublic static CUDA_LAUNCH_PARAMS malloc()
CUDA_LAUNCH_PARAMS instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_LAUNCH_PARAMS calloc()
CUDA_LAUNCH_PARAMS instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_LAUNCH_PARAMS create()
CUDA_LAUNCH_PARAMS instance allocated with BufferUtils.public static CUDA_LAUNCH_PARAMS create(long address)
CUDA_LAUNCH_PARAMS instance for the specified memory address.@Nullable public static CUDA_LAUNCH_PARAMS createSafe(long address)
public static CUDA_LAUNCH_PARAMS.Buffer malloc(int capacity)
CUDA_LAUNCH_PARAMS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_LAUNCH_PARAMS.Buffer calloc(int capacity)
CUDA_LAUNCH_PARAMS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_LAUNCH_PARAMS.Buffer create(int capacity)
CUDA_LAUNCH_PARAMS.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_LAUNCH_PARAMS.Buffer create(long address, int capacity)
CUDA_LAUNCH_PARAMS.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_LAUNCH_PARAMS.Buffer createSafe(long address, int capacity)
public static CUDA_LAUNCH_PARAMS mallocStack()
CUDA_LAUNCH_PARAMS instance allocated on the thread-local MemoryStack.public static CUDA_LAUNCH_PARAMS callocStack()
CUDA_LAUNCH_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_LAUNCH_PARAMS mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_LAUNCH_PARAMS instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_LAUNCH_PARAMS callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_LAUNCH_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_LAUNCH_PARAMS.Buffer mallocStack(int capacity)
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_LAUNCH_PARAMS.Buffer callocStack(int capacity)
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_LAUNCH_PARAMS.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_LAUNCH_PARAMS.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_LAUNCH_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nfunction(long struct)
function().public static int ngridDimX(long struct)
gridDimX().public static int ngridDimY(long struct)
gridDimY().public static int ngridDimZ(long struct)
gridDimZ().public static int nblockDimX(long struct)
blockDimX().public static int nblockDimY(long struct)
blockDimY().public static int nblockDimZ(long struct)
blockDimZ().public static int nsharedMemBytes(long struct)
sharedMemBytes().public static long nhStream(long struct)
hStream().public static org.lwjgl.PointerBuffer nkernelParams(long struct,
int capacity)
kernelParams.public static void nfunction(long struct,
long value)
function.public static void ngridDimX(long struct,
int value)
gridDimX.public static void ngridDimY(long struct,
int value)
gridDimY.public static void ngridDimZ(long struct,
int value)
gridDimZ.public static void nblockDimX(long struct,
int value)
blockDimX.public static void nblockDimY(long struct,
int value)
blockDimY.public static void nblockDimZ(long struct,
int value)
blockDimZ.public static void nsharedMemBytes(long struct,
int value)
sharedMemBytes.public static void nhStream(long struct,
long value)
hStream.public static void nkernelParams(long struct,
org.lwjgl.PointerBuffer value)
kernelParams.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.