Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUDA_KERNEL_NODE_PARAMS_v2

extends Struct<CUDA_KERNEL_NODE_PARAMS_v2>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct CUDA_KERNEL_NODE_PARAMS_v2 {
    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;
    CUkernel kern;
    CUcontext ctx;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BLOCKDIMX

The struct member offsets.

public static final int
BLOCKDIMY

The struct member offsets.

public static final int
BLOCKDIMZ

The struct member offsets.

public static final int
CTX

The struct member offsets.

public static final int
EXTRA

The struct member offsets.

public static final int
FUNC

The struct member offsets.

public static final int
GRIDDIMX

The struct member offsets.

public static final int
GRIDDIMY

The struct member offsets.

public static final int
GRIDDIMZ

The struct member offsets.

public static final int
KERN

The struct member offsets.

public static final int
KERNELPARAMS

The struct member offsets.

public static final int
SHAREDMEMBYTES

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
CUDA_KERNEL_NODE_PARAMS_v2(long address, ByteBuffer container)

public
CUDA_KERNEL_NODE_PARAMS_v2(ByteBuffer container)

Creates a CUDA_KERNEL_NODE_PARAMS_v2 instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the blockDimX field.
blockDimX
()

public CUDA_KERNEL_NODE_PARAMS_v2
blockDimX(int value)

Sets the specified value to the blockDimX field.

public int

Returns:

the value of the blockDimY field.
blockDimY
()

public CUDA_KERNEL_NODE_PARAMS_v2
blockDimY(int value)

Sets the specified value to the blockDimY field.

public int

Returns:

the value of the blockDimZ field.
blockDimZ
()

public CUDA_KERNEL_NODE_PARAMS_v2
blockDimZ(int value)

Sets the specified value to the blockDimZ field.

public static CUDA_KERNEL_NODE_PARAMS_v2
calloc()

Returns a new CUDA_KERNEL_NODE_PARAMS_v2 instance allocated with memCalloc.

public static CUDA_KERNEL_NODE_PARAMS_v2.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2.Buffer instance allocated with memCalloc.

public static CUDA_KERNEL_NODE_PARAMS_v2
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2 instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static CUDA_KERNEL_NODE_PARAMS_v2.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected CUDA_KERNEL_NODE_PARAMS_v2
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static CUDA_KERNEL_NODE_PARAMS_v2
create()

Returns a new CUDA_KERNEL_NODE_PARAMS_v2 instance allocated with BufferUtils.

public static CUDA_KERNEL_NODE_PARAMS_v2
create(long address)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2 instance for the specified memory address.

public static CUDA_KERNEL_NODE_PARAMS_v2.Buffer
create(int
the buffer capacity
capacity
)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2.Buffer instance allocated with BufferUtils.

public static CUDA_KERNEL_NODE_PARAMS_v2.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a CUDA_KERNEL_NODE_PARAMS_v2.Buffer instance at the specified memory.

public static CUDA_KERNEL_NODE_PARAMS_v2
createSafe(long address)

Like create, but returns null if address is NULL.

public static CUDA_KERNEL_NODE_PARAMS_v2.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long

Returns:

the value of the ctx field.
ctx
()

public CUDA_KERNEL_NODE_PARAMS_v2
ctx(long value)

Sets the specified value to the ctx field.

public PointerBuffer

Returns:

a PointerBuffer view of the data pointed to by the extra field.
extra
(int
the number of elements in the returned buffer
capacity
)

public CUDA_KERNEL_NODE_PARAMS_v2
extra(PointerBuffer value)

Sets the address of the specified PointerBuffer to the extra field.

public long

Returns:

the value of the func field.
func
()

public CUDA_KERNEL_NODE_PARAMS_v2
func(long value)

Sets the specified value to the func field.

public int

Returns:

the value of the gridDimX field.
gridDimX
()

public CUDA_KERNEL_NODE_PARAMS_v2
gridDimX(int value)

Sets the specified value to the gridDimX field.

public int

Returns:

the value of the gridDimY field.
gridDimY
()

public CUDA_KERNEL_NODE_PARAMS_v2
gridDimY(int value)

Sets the specified value to the gridDimY field.

public int

Returns:

the value of the gridDimZ field.
gridDimZ
()

public CUDA_KERNEL_NODE_PARAMS_v2
gridDimZ(int value)

Sets the specified value to the gridDimZ field.

public long

Returns:

the value of the kern field.
kern
()

public CUDA_KERNEL_NODE_PARAMS_v2
kern(long value)

Sets the specified value to the kern field.

public PointerBuffer

Returns:

a PointerBuffer view of the data pointed to by the kernelParams field.
kernelParams
(int
the number of elements in the returned buffer
capacity
)

public CUDA_KERNEL_NODE_PARAMS_v2
kernelParams(PointerBuffer value)

Sets the address of the specified PointerBuffer to the kernelParams field.

public static CUDA_KERNEL_NODE_PARAMS_v2
malloc()

Returns a new CUDA_KERNEL_NODE_PARAMS_v2 instance allocated with memAlloc.

public static CUDA_KERNEL_NODE_PARAMS_v2.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2.Buffer instance allocated with memAlloc.

public static CUDA_KERNEL_NODE_PARAMS_v2
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2 instance allocated on the specified MemoryStack.

public static CUDA_KERNEL_NODE_PARAMS_v2.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new CUDA_KERNEL_NODE_PARAMS_v2.Buffer instance allocated on the specified MemoryStack.

public static int
nblockDimX(long struct)

Unsafe version of blockDimX.

public static void
nblockDimX(long struct, int value)

Unsafe version of blockDimX.

public static int
nblockDimY(long struct)

Unsafe version of blockDimY.

public static void
nblockDimY(long struct, int value)

Unsafe version of blockDimY.

public static int
nblockDimZ(long struct)

Unsafe version of blockDimZ.

public static void
nblockDimZ(long struct, int value)

Unsafe version of blockDimZ.

public static long
nctx(long struct)

Unsafe version of ctx.

public static void
nctx(long struct, long value)

Unsafe version of ctx.

public static PointerBuffer
nextra(long struct, int capacity)

Unsafe version of extra.

public static void
nextra(long struct, PointerBuffer value)

Unsafe version of extra.

public static long
nfunc(long struct)

Unsafe version of func.

public static void
nfunc(long struct, long value)

Unsafe version of func.

public static int
ngridDimX(long struct)

Unsafe version of gridDimX.

public static void
ngridDimX(long struct, int value)

Unsafe version of gridDimX.

public static int
ngridDimY(long struct)

Unsafe version of gridDimY.

public static void
ngridDimY(long struct, int value)

Unsafe version of gridDimY.

public static int
ngridDimZ(long struct)

Unsafe version of gridDimZ.

public static void
ngridDimZ(long struct, int value)

Unsafe version of gridDimZ.

public static long
nkern(long struct)

Unsafe version of kern.

public static void
nkern(long struct, long value)

Unsafe version of kern.

public static PointerBuffer
nkernelParams(long struct, int capacity)

Unsafe version of kernelParams.

public static void
nkernelParams(long struct, PointerBuffer value)

Unsafe version of kernelParams.

public static int
nsharedMemBytes(long struct)

Unsafe version of sharedMemBytes.

public static void
nsharedMemBytes(long struct, int value)

Unsafe version of sharedMemBytes.

public CUDA_KERNEL_NODE_PARAMS_v2
set(long func, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, PointerBuffer kernelParams, PointerBuffer extra, long kern, long ctx)

Initializes this struct with the specified values.

public CUDA_KERNEL_NODE_PARAMS_v2

Returns:

this struct
set
(CUDA_KERNEL_NODE_PARAMS_v2
the source struct
src
)

Copies the specified struct data to this struct.

public int

Returns:

the value of the sharedMemBytes field.
sharedMemBytes
()

public CUDA_KERNEL_NODE_PARAMS_v2
sharedMemBytes(int value)

Sets the specified value to the sharedMemBytes field.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate