Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUDA_LAUNCH_PARAMS

extends Struct<CUDA_LAUNCH_PARAMS>
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_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;
}

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
FUNCTION

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
HSTREAM

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_LAUNCH_PARAMS(long address, ByteBuffer container)

public
CUDA_LAUNCH_PARAMS(ByteBuffer container)

Creates a CUDA_LAUNCH_PARAMS 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_LAUNCH_PARAMS
blockDimX(int value)

Sets the specified value to the blockDimX field.

public int

Returns:

the value of the blockDimY field.
blockDimY
()

public CUDA_LAUNCH_PARAMS
blockDimY(int value)

Sets the specified value to the blockDimY field.

public int

Returns:

the value of the blockDimZ field.
blockDimZ
()

public CUDA_LAUNCH_PARAMS
blockDimZ(int value)

Sets the specified value to the blockDimZ field.

public static CUDA_LAUNCH_PARAMS
calloc()

Returns a new CUDA_LAUNCH_PARAMS instance allocated with memCalloc.

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

Returns a new CUDA_LAUNCH_PARAMS.Buffer instance allocated with memCalloc.

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

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

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

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

public static CUDA_LAUNCH_PARAMS
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_LAUNCH_PARAMS
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_LAUNCH_PARAMS.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_LAUNCH_PARAMS.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected CUDA_LAUNCH_PARAMS
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_LAUNCH_PARAMS
create()

Returns a new CUDA_LAUNCH_PARAMS instance allocated with BufferUtils.

public static CUDA_LAUNCH_PARAMS
create(long address)

Returns a new CUDA_LAUNCH_PARAMS instance for the specified memory address.

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

Returns a new CUDA_LAUNCH_PARAMS.Buffer instance allocated with BufferUtils.

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

Create a CUDA_LAUNCH_PARAMS.Buffer instance at the specified memory.

public static CUDA_LAUNCH_PARAMS
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public long

Returns:

the value of the function field.
function
()

public CUDA_LAUNCH_PARAMS
function(long value)

Sets the specified value to the function field.

public int

Returns:

the value of the gridDimX field.
gridDimX
()

public CUDA_LAUNCH_PARAMS
gridDimX(int value)

Sets the specified value to the gridDimX field.

public int

Returns:

the value of the gridDimY field.
gridDimY
()

public CUDA_LAUNCH_PARAMS
gridDimY(int value)

Sets the specified value to the gridDimY field.

public int

Returns:

the value of the gridDimZ field.
gridDimZ
()

public CUDA_LAUNCH_PARAMS
gridDimZ(int value)

Sets the specified value to the gridDimZ field.

public long

Returns:

the value of the hStream field.
hStream
()

public CUDA_LAUNCH_PARAMS
hStream(long value)

Sets the specified value to the hStream 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_LAUNCH_PARAMS
kernelParams(PointerBuffer value)

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

public static CUDA_LAUNCH_PARAMS
malloc()

Returns a new CUDA_LAUNCH_PARAMS instance allocated with memAlloc.

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

Returns a new CUDA_LAUNCH_PARAMS.Buffer instance allocated with memAlloc.

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

Returns a new CUDA_LAUNCH_PARAMS instance allocated on the specified MemoryStack.

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

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

public static CUDA_LAUNCH_PARAMS
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_LAUNCH_PARAMS
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_LAUNCH_PARAMS.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static CUDA_LAUNCH_PARAMS.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
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
nfunction(long struct)

Unsafe version of function.

public static void
nfunction(long struct, long value)

Unsafe version of function.

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
nhStream(long struct)

Unsafe version of hStream.

public static void
nhStream(long struct, long value)

Unsafe version of hStream.

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_LAUNCH_PARAMS
set(long function, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, long hStream, PointerBuffer kernelParams)

Initializes this struct with the specified values.

public CUDA_LAUNCH_PARAMS

Returns:

this struct
set
(CUDA_LAUNCH_PARAMS
the source struct
src
)

Copies the specified struct data to this struct.

public int

Returns:

the value of the sharedMemBytes field.
sharedMemBytes
()

public CUDA_LAUNCH_PARAMS
sharedMemBytes(int value)

Sets the specified value to the sharedMemBytes field.

public int
sizeof()

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

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate