public class CUDA_KERNEL_NODE_PARAMS
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
func – 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 byteskernelParams – Array of pointers to kernel parametersextra – Extra options
struct CUDA_KERNEL_NODE_PARAMS {
CUfunction func;
unsigned int gridDimX;
unsigned int gridDimY;
unsigned int gridDimZ;
unsigned int blockDimX;
unsigned int blockDimY;
unsigned int blockDimZ;
unsigned int sharedMemBytes;
void ** kernelParams;
void ** extra;
}| Modifier and Type | Class and Description |
|---|---|
static class |
CUDA_KERNEL_NODE_PARAMS.Buffer
An array of
CUDA_KERNEL_NODE_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 |
EXTRA
The struct member offsets.
|
static int |
FUNC
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 |
KERNELPARAMS
The struct member offsets.
|
static int |
SHAREDMEMBYTES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
CUDA_KERNEL_NODE_PARAMS(java.nio.ByteBuffer container)
Creates a
CUDA_KERNEL_NODE_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_KERNEL_NODE_PARAMS |
blockDimX(int value)
Sets the specified value to the
blockDimX field. |
int |
blockDimY()
Returns the value of the
blockDimY field. |
CUDA_KERNEL_NODE_PARAMS |
blockDimY(int value)
Sets the specified value to the
blockDimY field. |
int |
blockDimZ()
Returns the value of the
blockDimZ field. |
CUDA_KERNEL_NODE_PARAMS |
blockDimZ(int value)
Sets the specified value to the
blockDimZ field. |
static CUDA_KERNEL_NODE_PARAMS |
calloc()
Returns a new
CUDA_KERNEL_NODE_PARAMS instance allocated with memCalloc. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
calloc(int capacity)
Returns a new
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated with memCalloc. |
static CUDA_KERNEL_NODE_PARAMS |
callocStack()
Returns a new
CUDA_KERNEL_NODE_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
callocStack(int capacity)
Returns a new
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_KERNEL_NODE_PARAMS |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_KERNEL_NODE_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static CUDA_KERNEL_NODE_PARAMS |
create()
Returns a new
CUDA_KERNEL_NODE_PARAMS instance allocated with BufferUtils. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
create(int capacity)
Returns a new
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated with BufferUtils. |
static CUDA_KERNEL_NODE_PARAMS |
create(long address)
Returns a new
CUDA_KERNEL_NODE_PARAMS instance for the specified memory address. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
create(long address,
int capacity)
Create a
CUDA_KERNEL_NODE_PARAMS.Buffer instance at the specified memory. |
static CUDA_KERNEL_NODE_PARAMS |
createSafe(long address)
|
static CUDA_KERNEL_NODE_PARAMS.Buffer |
createSafe(long address,
int capacity)
|
org.lwjgl.PointerBuffer |
extra(int capacity)
Returns a
PointerBuffer view of the data pointed to by the extra field. |
CUDA_KERNEL_NODE_PARAMS |
extra(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the extra field. |
long |
func()
Returns the value of the
func field. |
CUDA_KERNEL_NODE_PARAMS |
func(long value)
Sets the specified value to the
func field. |
int |
gridDimX()
Returns the value of the
gridDimX field. |
CUDA_KERNEL_NODE_PARAMS |
gridDimX(int value)
Sets the specified value to the
gridDimX field. |
int |
gridDimY()
Returns the value of the
gridDimY field. |
CUDA_KERNEL_NODE_PARAMS |
gridDimY(int value)
Sets the specified value to the
gridDimY field. |
int |
gridDimZ()
Returns the value of the
gridDimZ field. |
CUDA_KERNEL_NODE_PARAMS |
gridDimZ(int value)
Sets the specified value to the
gridDimZ field. |
org.lwjgl.PointerBuffer |
kernelParams(int capacity)
Returns a
PointerBuffer view of the data pointed to by the kernelParams field. |
CUDA_KERNEL_NODE_PARAMS |
kernelParams(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the kernelParams field. |
static CUDA_KERNEL_NODE_PARAMS |
malloc()
Returns a new
CUDA_KERNEL_NODE_PARAMS instance allocated with memAlloc. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
malloc(int capacity)
Returns a new
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated with memAlloc. |
static CUDA_KERNEL_NODE_PARAMS |
mallocStack()
Returns a new
CUDA_KERNEL_NODE_PARAMS instance allocated on the thread-local MemoryStack. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
mallocStack(int capacity)
Returns a new
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack. |
static CUDA_KERNEL_NODE_PARAMS.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack. |
static CUDA_KERNEL_NODE_PARAMS |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
CUDA_KERNEL_NODE_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 org.lwjgl.PointerBuffer |
nextra(long struct,
int capacity)
Unsafe version of
extra. |
static void |
nextra(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
extra. |
static long |
nfunc(long struct)
Unsafe version of
func(). |
static void |
nfunc(long struct,
long value)
Unsafe version of
func. |
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 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_KERNEL_NODE_PARAMS |
set(CUDA_KERNEL_NODE_PARAMS src)
Copies the specified struct data to this struct.
|
CUDA_KERNEL_NODE_PARAMS |
set(long func,
int gridDimX,
int gridDimY,
int gridDimZ,
int blockDimX,
int blockDimY,
int blockDimZ,
int sharedMemBytes,
org.lwjgl.PointerBuffer kernelParams,
org.lwjgl.PointerBuffer extra)
Initializes this struct with the specified values.
|
int |
sharedMemBytes()
Returns the value of the
sharedMemBytes field. |
CUDA_KERNEL_NODE_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 FUNC
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 KERNELPARAMS
public static final int EXTRA
public CUDA_KERNEL_NODE_PARAMS(java.nio.ByteBuffer container)
CUDA_KERNEL_NODE_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 func()
func 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 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 org.lwjgl.PointerBuffer extra(int capacity)
PointerBuffer view of the data pointed to by the extra field.capacity - the number of elements in the returned bufferpublic CUDA_KERNEL_NODE_PARAMS func(long value)
func field.public CUDA_KERNEL_NODE_PARAMS gridDimX(int value)
gridDimX field.public CUDA_KERNEL_NODE_PARAMS gridDimY(int value)
gridDimY field.public CUDA_KERNEL_NODE_PARAMS gridDimZ(int value)
gridDimZ field.public CUDA_KERNEL_NODE_PARAMS blockDimX(int value)
blockDimX field.public CUDA_KERNEL_NODE_PARAMS blockDimY(int value)
blockDimY field.public CUDA_KERNEL_NODE_PARAMS blockDimZ(int value)
blockDimZ field.public CUDA_KERNEL_NODE_PARAMS sharedMemBytes(int value)
sharedMemBytes field.public CUDA_KERNEL_NODE_PARAMS kernelParams(org.lwjgl.PointerBuffer value)
PointerBuffer to the kernelParams field.public CUDA_KERNEL_NODE_PARAMS extra(org.lwjgl.PointerBuffer value)
PointerBuffer to the extra field.public CUDA_KERNEL_NODE_PARAMS set(long func, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, org.lwjgl.PointerBuffer kernelParams, org.lwjgl.PointerBuffer extra)
public CUDA_KERNEL_NODE_PARAMS set(CUDA_KERNEL_NODE_PARAMS src)
src - the source structpublic static CUDA_KERNEL_NODE_PARAMS malloc()
CUDA_KERNEL_NODE_PARAMS instance allocated with memAlloc. The instance must be explicitly freed.public static CUDA_KERNEL_NODE_PARAMS calloc()
CUDA_KERNEL_NODE_PARAMS instance allocated with memCalloc. The instance must be explicitly freed.public static CUDA_KERNEL_NODE_PARAMS create()
CUDA_KERNEL_NODE_PARAMS instance allocated with BufferUtils.public static CUDA_KERNEL_NODE_PARAMS create(long address)
CUDA_KERNEL_NODE_PARAMS instance for the specified memory address.@Nullable public static CUDA_KERNEL_NODE_PARAMS createSafe(long address)
public static CUDA_KERNEL_NODE_PARAMS.Buffer malloc(int capacity)
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_KERNEL_NODE_PARAMS.Buffer calloc(int capacity)
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static CUDA_KERNEL_NODE_PARAMS.Buffer create(int capacity)
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static CUDA_KERNEL_NODE_PARAMS.Buffer create(long address, int capacity)
CUDA_KERNEL_NODE_PARAMS.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static CUDA_KERNEL_NODE_PARAMS.Buffer createSafe(long address, int capacity)
public static CUDA_KERNEL_NODE_PARAMS mallocStack()
CUDA_KERNEL_NODE_PARAMS instance allocated on the thread-local MemoryStack.public static CUDA_KERNEL_NODE_PARAMS callocStack()
CUDA_KERNEL_NODE_PARAMS instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static CUDA_KERNEL_NODE_PARAMS mallocStack(org.lwjgl.system.MemoryStack stack)
CUDA_KERNEL_NODE_PARAMS instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static CUDA_KERNEL_NODE_PARAMS callocStack(org.lwjgl.system.MemoryStack stack)
CUDA_KERNEL_NODE_PARAMS instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static CUDA_KERNEL_NODE_PARAMS.Buffer mallocStack(int capacity)
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static CUDA_KERNEL_NODE_PARAMS.Buffer callocStack(int capacity)
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static CUDA_KERNEL_NODE_PARAMS.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static CUDA_KERNEL_NODE_PARAMS.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
CUDA_KERNEL_NODE_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 nfunc(long struct)
func().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 org.lwjgl.PointerBuffer nkernelParams(long struct,
int capacity)
kernelParams.public static org.lwjgl.PointerBuffer nextra(long struct,
int capacity)
extra.public static void nfunc(long struct,
long value)
func.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 nkernelParams(long struct,
org.lwjgl.PointerBuffer value)
kernelParams.public static void nextra(long struct,
org.lwjgl.PointerBuffer value)
extra.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.