Package org.lwjgl.cuda
Class CUgraphNodeParams
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUgraphNodeParams>
org.lwjgl.cuda.CUgraphNodeParams
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUgraphNodeParams
extends org.lwjgl.system.Struct<CUgraphNodeParams>
implements org.lwjgl.system.NativeResource
Layout
struct CUgraphNodeParams {
CUgraphNodeType type;
int reserved0[3];
union {
long long reserved1[29];
CUDA_KERNEL_NODE_PARAMS_v3 kernel;
CUDA_MEMCPY_NODE_PARAMS memcpy;
CUDA_MEMSET_NODE_PARAMS_v2 memset;
CUDA_HOST_NODE_PARAMS_v2 host;
CUDA_CHILD_GRAPH_NODE_PARAMS graph;
CUDA_EVENT_WAIT_NODE_PARAMS eventWait;
CUDA_EVENT_RECORD_NODE_PARAMS eventRecord;
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 extSemSignal;
CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 extSemWait;
CUDA_MEM_ALLOC_NODE_PARAMS alloc;
CUDA_MEM_FREE_NODE_PARAMS free;
CUDA_BATCH_MEM_OP_NODE_PARAMS memOp;
CUDA_CONDITIONAL_NODE_PARAMS conditional;
} params;
long long reserved2;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCUgraphNodeParams(ByteBuffer container) Creates aCUgraphNodeParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic CUgraphNodeParamscalloc()Returns a newCUgraphNodeParamsinstance allocated withmemCalloc.static CUgraphNodeParams.Buffercalloc(int capacity) Returns a newCUgraphNodeParams.Bufferinstance allocated withmemCalloc.static CUgraphNodeParams.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUgraphNodeParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUgraphNodeParamscalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUgraphNodeParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUgraphNodeParamscreate()Returns a newCUgraphNodeParamsinstance allocated withBufferUtils.static CUgraphNodeParams.Buffercreate(int capacity) Returns a newCUgraphNodeParams.Bufferinstance allocated withBufferUtils.static CUgraphNodeParamscreate(long address) Returns a newCUgraphNodeParamsinstance for the specified memory address.static CUgraphNodeParams.Buffercreate(long address, int capacity) Create aCUgraphNodeParams.Bufferinstance at the specified memory.static @Nullable CUgraphNodeParamscreateSafe(long address) static @Nullable CUgraphNodeParams.BuffercreateSafe(long address, int capacity) static CUgraphNodeParamsmalloc()Returns a newCUgraphNodeParamsinstance allocated withmemAlloc.static CUgraphNodeParams.Buffermalloc(int capacity) Returns a newCUgraphNodeParams.Bufferinstance allocated withmemAlloc.static CUgraphNodeParams.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUgraphNodeParams.Bufferinstance allocated on the specifiedMemoryStack.static CUgraphNodeParamsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUgraphNodeParamsinstance allocated on the specifiedMemoryStack.static CUDA_MEM_ALLOC_NODE_PARAMSnparams_alloc(long struct) Unsafe version ofparams_alloc().static voidnparams_alloc(long struct, CUDA_MEM_ALLOC_NODE_PARAMS value) Unsafe version ofparams_alloc.static CUDA_CONDITIONAL_NODE_PARAMSnparams_conditional(long struct) Unsafe version ofparams_conditional().static voidnparams_conditional(long struct, CUDA_CONDITIONAL_NODE_PARAMS value) Unsafe version ofparams_conditional.nparams_eventRecord(long struct) Unsafe version ofparams_eventRecord().static voidnparams_eventRecord(long struct, CUDA_EVENT_RECORD_NODE_PARAMS value) Unsafe version ofparams_eventRecord.static CUDA_EVENT_WAIT_NODE_PARAMSnparams_eventWait(long struct) Unsafe version ofparams_eventWait().static voidnparams_eventWait(long struct, CUDA_EVENT_WAIT_NODE_PARAMS value) Unsafe version ofparams_eventWait.nparams_extSemSignal(long struct) Unsafe version ofparams_extSemSignal().static voidnparams_extSemSignal(long struct, CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2 value) Unsafe version ofparams_extSemSignal.nparams_extSemWait(long struct) Unsafe version ofparams_extSemWait().static voidnparams_extSemWait(long struct, CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2 value) Unsafe version ofparams_extSemWait.static CUDA_MEM_FREE_NODE_PARAMSnparams_free(long struct) Unsafe version ofparams_free().static voidnparams_free(long struct, CUDA_MEM_FREE_NODE_PARAMS value) Unsafe version ofparams_free.static CUDA_CHILD_GRAPH_NODE_PARAMSnparams_graph(long struct) Unsafe version ofparams_graph().static voidnparams_graph(long struct, CUDA_CHILD_GRAPH_NODE_PARAMS value) Unsafe version ofparams_graph.static CUDA_HOST_NODE_PARAMS_v2nparams_host(long struct) Unsafe version ofparams_host().static voidnparams_host(long struct, CUDA_HOST_NODE_PARAMS_v2 value) Unsafe version ofparams_host.static CUDA_KERNEL_NODE_PARAMS_v3nparams_kernel(long struct) Unsafe version ofparams_kernel().static voidnparams_kernel(long struct, CUDA_KERNEL_NODE_PARAMS_v3 value) Unsafe version ofparams_kernel.static CUDA_MEMCPY_NODE_PARAMSnparams_memcpy(long struct) Unsafe version ofparams_memcpy().static voidnparams_memcpy(long struct, CUDA_MEMCPY_NODE_PARAMS value) Unsafe version ofparams_memcpy.nparams_memOp(long struct) Unsafe version ofparams_memOp().static voidnparams_memOp(long struct, CUDA_BATCH_MEM_OP_NODE_PARAMS value) Unsafe version ofparams_memOp.static CUDA_MEMSET_NODE_PARAMS_v2nparams_memset(long struct) Unsafe version ofparams_memset().static voidnparams_memset(long struct, CUDA_MEMSET_NODE_PARAMS_v2 value) Unsafe version ofparams_memset.static LongBuffernparams_reserved1(long struct) static longnparams_reserved1(long struct, int index) static voidnparams_reserved1(long struct, int index, long value) static voidnparams_reserved1(long struct, LongBuffer value) static IntBuffernreserved0(long struct) static intnreserved0(long struct, int index) static voidnreserved0(long struct, int index, int value) static voidnreserved0(long struct, IntBuffer value) static longnreserved2(long struct) static voidnreserved2(long struct, long value) static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.params_alloc(Consumer<CUDA_MEM_ALLOC_NODE_PARAMS> consumer) Passes theallocfield to the specifiedConsumer.Copies the specifiedCUDA_MEM_ALLOC_NODE_PARAMSto theallocfield.Passes theconditionalfield to the specifiedConsumer.Copies the specifiedCUDA_CONDITIONAL_NODE_PARAMSto theconditionalfield.Passes theeventRecordfield to the specifiedConsumer.Copies the specifiedCUDA_EVENT_RECORD_NODE_PARAMSto theeventRecordfield.params_eventWait(Consumer<CUDA_EVENT_WAIT_NODE_PARAMS> consumer) Passes theeventWaitfield to the specifiedConsumer.Copies the specifiedCUDA_EVENT_WAIT_NODE_PARAMSto theeventWaitfield.Passes theextSemSignalfield to the specifiedConsumer.Copies the specifiedCUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2to theextSemSignalfield.Passes theextSemWaitfield to the specifiedConsumer.Copies the specifiedCUDA_EXT_SEM_WAIT_NODE_PARAMS_v2to theextSemWaitfield.params_free(Consumer<CUDA_MEM_FREE_NODE_PARAMS> consumer) Passes thefreefield to the specifiedConsumer.Copies the specifiedCUDA_MEM_FREE_NODE_PARAMSto thefreefield.params_graph(Consumer<CUDA_CHILD_GRAPH_NODE_PARAMS> consumer) Passes thegraphfield to the specifiedConsumer.Copies the specifiedCUDA_CHILD_GRAPH_NODE_PARAMSto thegraphfield.params_host(Consumer<CUDA_HOST_NODE_PARAMS_v2> consumer) Passes thehostfield to the specifiedConsumer.Copies the specifiedCUDA_HOST_NODE_PARAMS_v2to thehostfield.params_kernel(Consumer<CUDA_KERNEL_NODE_PARAMS_v3> consumer) Passes thekernelfield to the specifiedConsumer.Copies the specifiedCUDA_KERNEL_NODE_PARAMS_v3to thekernelfield.params_memcpy(Consumer<CUDA_MEMCPY_NODE_PARAMS> consumer) Passes thememcpyfield to the specifiedConsumer.Copies the specifiedCUDA_MEMCPY_NODE_PARAMSto thememcpyfield.params_memOp(Consumer<CUDA_BATCH_MEM_OP_NODE_PARAMS> consumer) Passes thememOpfield to the specifiedConsumer.Copies the specifiedCUDA_BATCH_MEM_OP_NODE_PARAMSto thememOpfield.params_memset(Consumer<CUDA_MEMSET_NODE_PARAMS_v2> consumer) Passes thememsetfield to the specifiedConsumer.Copies the specifiedCUDA_MEMSET_NODE_PARAMS_v2to thememsetfield.longparams_reserved1(int index) params_reserved1(int index, long value) Sets the specified value at the specified index of thereserved1field.params_reserved1(LongBuffer value) Copies the specifiedLongBufferto thereserved1field.set(CUgraphNodeParams src) Copies the specified struct data to this struct.intsizeof()inttype()type(int value) Sets the specified value to thetypefield.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
RESERVED0
public static final int RESERVED0The struct member offsets. -
PARAMS
public static final int PARAMSThe struct member offsets. -
PARAMS_RESERVED1
public static final int PARAMS_RESERVED1The struct member offsets. -
PARAMS_KERNEL
public static final int PARAMS_KERNELThe struct member offsets. -
PARAMS_MEMCPY
public static final int PARAMS_MEMCPYThe struct member offsets. -
PARAMS_MEMSET
public static final int PARAMS_MEMSETThe struct member offsets. -
PARAMS_HOST
public static final int PARAMS_HOSTThe struct member offsets. -
PARAMS_GRAPH
public static final int PARAMS_GRAPHThe struct member offsets. -
PARAMS_EVENTWAIT
public static final int PARAMS_EVENTWAITThe struct member offsets. -
PARAMS_EVENTRECORD
public static final int PARAMS_EVENTRECORDThe struct member offsets. -
PARAMS_EXTSEMSIGNAL
public static final int PARAMS_EXTSEMSIGNALThe struct member offsets. -
PARAMS_EXTSEMWAIT
public static final int PARAMS_EXTSEMWAITThe struct member offsets. -
PARAMS_ALLOC
public static final int PARAMS_ALLOCThe struct member offsets. -
PARAMS_FREE
public static final int PARAMS_FREEThe struct member offsets. -
PARAMS_MEMOP
public static final int PARAMS_MEMOPThe struct member offsets. -
PARAMS_CONDITIONAL
public static final int PARAMS_CONDITIONALThe struct member offsets. -
RESERVED2
public static final int RESERVED2The struct member offsets.
-
-
Constructor Details
-
CUgraphNodeParams
Creates aCUgraphNodeParamsinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<CUgraphNodeParams>
-
type
public int type()- Returns:
- the value of the
typefield.
-
params_reserved1
- Returns:
- a
LongBufferview of theparams.reserved1field.
-
params_reserved1
public long params_reserved1(int index) - Returns:
- the value at the specified index of the
params.reserved1field.
-
params_kernel
- Returns:
- a
CUDA_KERNEL_NODE_PARAMS_v3view of theparams.kernelfield.
-
params_memcpy
- Returns:
- a
CUDA_MEMCPY_NODE_PARAMSview of theparams.memcpyfield.
-
params_memset
- Returns:
- a
CUDA_MEMSET_NODE_PARAMS_v2view of theparams.memsetfield.
-
params_host
- Returns:
- a
CUDA_HOST_NODE_PARAMS_v2view of theparams.hostfield.
-
params_graph
- Returns:
- a
CUDA_CHILD_GRAPH_NODE_PARAMSview of theparams.graphfield.
-
params_eventWait
- Returns:
- a
CUDA_EVENT_WAIT_NODE_PARAMSview of theparams.eventWaitfield.
-
params_eventRecord
- Returns:
- a
CUDA_EVENT_RECORD_NODE_PARAMSview of theparams.eventRecordfield.
-
params_extSemSignal
- Returns:
- a
CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2view of theparams.extSemSignalfield.
-
params_extSemWait
- Returns:
- a
CUDA_EXT_SEM_WAIT_NODE_PARAMS_v2view of theparams.extSemWaitfield.
-
params_alloc
- Returns:
- a
CUDA_MEM_ALLOC_NODE_PARAMSview of theparams.allocfield.
-
params_free
- Returns:
- a
CUDA_MEM_FREE_NODE_PARAMSview of theparams.freefield.
-
params_memOp
- Returns:
- a
CUDA_BATCH_MEM_OP_NODE_PARAMSview of theparams.memOpfield.
-
params_conditional
- Returns:
- a
CUDA_CONDITIONAL_NODE_PARAMSview of theparams.conditionalfield.
-
type
Sets the specified value to thetypefield. -
params_reserved1
Copies the specifiedLongBufferto thereserved1field. -
params_reserved1
Sets the specified value at the specified index of thereserved1field. -
params_kernel
Copies the specifiedCUDA_KERNEL_NODE_PARAMS_v3to thekernelfield. -
params_kernel
Passes thekernelfield to the specifiedConsumer. -
params_memcpy
Copies the specifiedCUDA_MEMCPY_NODE_PARAMSto thememcpyfield. -
params_memcpy
Passes thememcpyfield to the specifiedConsumer. -
params_memset
Copies the specifiedCUDA_MEMSET_NODE_PARAMS_v2to thememsetfield. -
params_memset
Passes thememsetfield to the specifiedConsumer. -
params_host
Copies the specifiedCUDA_HOST_NODE_PARAMS_v2to thehostfield. -
params_host
Passes thehostfield to the specifiedConsumer. -
params_graph
Copies the specifiedCUDA_CHILD_GRAPH_NODE_PARAMSto thegraphfield. -
params_graph
Passes thegraphfield to the specifiedConsumer. -
params_eventWait
Copies the specifiedCUDA_EVENT_WAIT_NODE_PARAMSto theeventWaitfield. -
params_eventWait
Passes theeventWaitfield to the specifiedConsumer. -
params_eventRecord
Copies the specifiedCUDA_EVENT_RECORD_NODE_PARAMSto theeventRecordfield. -
params_eventRecord
Passes theeventRecordfield to the specifiedConsumer. -
params_extSemSignal
Copies the specifiedCUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v2to theextSemSignalfield. -
params_extSemSignal
Passes theextSemSignalfield to the specifiedConsumer. -
params_extSemWait
Copies the specifiedCUDA_EXT_SEM_WAIT_NODE_PARAMS_v2to theextSemWaitfield. -
params_extSemWait
Passes theextSemWaitfield to the specifiedConsumer. -
params_alloc
Copies the specifiedCUDA_MEM_ALLOC_NODE_PARAMSto theallocfield. -
params_alloc
Passes theallocfield to the specifiedConsumer. -
params_free
Copies the specifiedCUDA_MEM_FREE_NODE_PARAMSto thefreefield. -
params_free
Passes thefreefield to the specifiedConsumer. -
params_memOp
Copies the specifiedCUDA_BATCH_MEM_OP_NODE_PARAMSto thememOpfield. -
params_memOp
Passes thememOpfield to the specifiedConsumer. -
params_conditional
Copies the specifiedCUDA_CONDITIONAL_NODE_PARAMSto theconditionalfield. -
params_conditional
Passes theconditionalfield to the specifiedConsumer. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUgraphNodeParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUgraphNodeParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUgraphNodeParamsinstance allocated withBufferUtils. -
create
Returns a newCUgraphNodeParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUgraphNodeParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUgraphNodeParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUgraphNodeParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUgraphNodeParams.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUgraphNodeParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUgraphNodeParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newCUgraphNodeParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newCUgraphNodeParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nreserved0
-
nreserved0
public static int nreserved0(long struct, int index) -
nparams_reserved1
-
nparams_reserved1
public static long nparams_reserved1(long struct, int index) -
nparams_kernel
Unsafe version ofparams_kernel(). -
nparams_memcpy
Unsafe version ofparams_memcpy(). -
nparams_memset
Unsafe version ofparams_memset(). -
nparams_host
Unsafe version ofparams_host(). -
nparams_graph
Unsafe version ofparams_graph(). -
nparams_eventWait
Unsafe version ofparams_eventWait(). -
nparams_eventRecord
Unsafe version ofparams_eventRecord(). -
nparams_extSemSignal
Unsafe version ofparams_extSemSignal(). -
nparams_extSemWait
Unsafe version ofparams_extSemWait(). -
nparams_alloc
Unsafe version ofparams_alloc(). -
nparams_free
Unsafe version ofparams_free(). -
nparams_memOp
Unsafe version ofparams_memOp(). -
nparams_conditional
Unsafe version ofparams_conditional(). -
nreserved2
public static long nreserved2(long struct) -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nreserved0
-
nreserved0
public static void nreserved0(long struct, int index, int value) -
nparams_reserved1
-
nparams_reserved1
public static void nparams_reserved1(long struct, int index, long value) -
nparams_kernel
Unsafe version ofparams_kernel. -
nparams_memcpy
Unsafe version ofparams_memcpy. -
nparams_memset
Unsafe version ofparams_memset. -
nparams_host
Unsafe version ofparams_host. -
nparams_graph
Unsafe version ofparams_graph. -
nparams_eventWait
Unsafe version ofparams_eventWait. -
nparams_eventRecord
Unsafe version ofparams_eventRecord. -
nparams_extSemSignal
Unsafe version ofparams_extSemSignal. -
nparams_extSemWait
Unsafe version ofparams_extSemWait. -
nparams_alloc
Unsafe version ofparams_alloc. -
nparams_free
Unsafe version ofparams_free. -
nparams_memOp
Unsafe version ofparams_memOp. -
nparams_conditional
Unsafe version ofparams_conditional. -
nreserved2
public static void nreserved2(long struct, long value)
-