Package org.lwjgl.cuda
Class CUstreamBatchMemOpParams
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUstreamBatchMemOpParams
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUstreamBatchMemOpParams extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourcePer-operation parameters forStreamBatchMemOp.Layout
union CUstreamBatchMemOpParams { CUstreamBatchMemOpType operation; struct { CUstreamBatchMemOpType operation; CUdeviceptr address; union { cuuint32_t value; cuuint64_t value64; }; unsigned int flags; CUdeviceptralias; } waitValue; struct { CUstreamBatchMemOpType operation; CUdeviceptr address; union { cuuint32_t value; cuuint64_t value64; }; unsigned int flags; CUdeviceptralias; } writeValue; struct { CUstreamBatchMemOpType operation; unsigned int flags; } flushRemoteWrites; cuuint64_t pad[6]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUstreamBatchMemOpParams.BufferAn array ofCUstreamBatchMemOpParamsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFLUSHREMOTEWRITES
FLUSHREMOTEWRITES_FLAGS
FLUSHREMOTEWRITES_OPERATION
OPERATION
PADThe struct member offsets.static intSIZEOFThe struct size in bytes.static intWAITVALUE
WAITVALUE_ADDRESS
WAITVALUE_ALIAS
WAITVALUE_FLAGS
WAITVALUE_OPERATION
WAITVALUE_VALUE
WAITVALUE_VALUE64
WRITEVALUE
WRITEVALUE_ADDRESS
WRITEVALUE_ALIAS
WRITEVALUE_FLAGS
WRITEVALUE_OPERATION
WRITEVALUE_VALUE
WRITEVALUE_VALUE64The struct member offsets.
-
Constructor Summary
Constructors Constructor Description CUstreamBatchMemOpParams(java.nio.ByteBuffer container)Creates aCUstreamBatchMemOpParamsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CUstreamBatchMemOpParamscalloc()Returns a newCUstreamBatchMemOpParamsinstance allocated withmemCalloc.static CUstreamBatchMemOpParams.Buffercalloc(int capacity)Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemCalloc.static CUstreamBatchMemOpParams.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUstreamBatchMemOpParamscalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUstreamBatchMemOpParamscallocStack()Deprecated.static CUstreamBatchMemOpParams.BuffercallocStack(int capacity)Deprecated.static CUstreamBatchMemOpParams.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUstreamBatchMemOpParamscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static CUstreamBatchMemOpParamscreate()Returns a newCUstreamBatchMemOpParamsinstance allocated withBufferUtils.static CUstreamBatchMemOpParams.Buffercreate(int capacity)Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withBufferUtils.static CUstreamBatchMemOpParamscreate(long address)Returns a newCUstreamBatchMemOpParamsinstance for the specified memory address.static CUstreamBatchMemOpParams.Buffercreate(long address, int capacity)Create aCUstreamBatchMemOpParams.Bufferinstance at the specified memory.static CUstreamBatchMemOpParamscreateSafe(long address)static CUstreamBatchMemOpParams.BuffercreateSafe(long address, int capacity)intflushRemoteWrites_flags()CUstreamBatchMemOpParamsflushRemoteWrites_flags(int value)Sets the specified value to theflagsfield.intflushRemoteWrites_operation()CUstreamBatchMemOpParamsflushRemoteWrites_operation(int value)Sets the specified value to theoperationfield.static CUstreamBatchMemOpParamsmalloc()Returns a newCUstreamBatchMemOpParamsinstance allocated withmemAlloc.static CUstreamBatchMemOpParams.Buffermalloc(int capacity)Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemAlloc.static CUstreamBatchMemOpParams.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStack.static CUstreamBatchMemOpParamsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStack.static CUstreamBatchMemOpParamsmallocStack()Deprecated.static CUstreamBatchMemOpParams.BuffermallocStack(int capacity)Deprecated.static CUstreamBatchMemOpParams.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUstreamBatchMemOpParamsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnflushRemoteWrites_flags(long struct)Unsafe version offlushRemoteWrites_flags().static voidnflushRemoteWrites_flags(long struct, int value)Unsafe version offlushRemoteWrites_flags.static intnflushRemoteWrites_operation(long struct)Unsafe version offlushRemoteWrites_operation().static voidnflushRemoteWrites_operation(long struct, int value)Unsafe version offlushRemoteWrites_operation.static intnoperation(long struct)Unsafe version ofoperation().static voidnoperation(long struct, int value)Unsafe version ofoperation.static java.nio.LongBuffernpad(long struct)Unsafe version ofpad().static longnpad(long struct, int index)Unsafe version ofpad.static voidnpad(long struct, int index, long value)Unsafe version ofpad.static voidnpad(long struct, java.nio.LongBuffer value)Unsafe version ofpad.static longnwaitValue_address(long struct)Unsafe version ofwaitValue_address().static voidnwaitValue_address(long struct, long value)Unsafe version ofwaitValue_address.static longnwaitValue_alias(long struct)Unsafe version ofwaitValue_alias().static voidnwaitValue_alias(long struct, long value)Unsafe version ofwaitValue_alias.static intnwaitValue_flags(long struct)Unsafe version ofwaitValue_flags().static voidnwaitValue_flags(long struct, int value)Unsafe version ofwaitValue_flags.static intnwaitValue_operation(long struct)Unsafe version ofwaitValue_operation().static voidnwaitValue_operation(long struct, int value)Unsafe version ofwaitValue_operation.static intnwaitValue_value(long struct)Unsafe version ofwaitValue_value().static voidnwaitValue_value(long struct, int value)Unsafe version ofwaitValue_value.static longnwaitValue_value64(long struct)Unsafe version ofwaitValue_value64().static voidnwaitValue_value64(long struct, long value)Unsafe version ofwaitValue_value64.static longnwriteValue_address(long struct)Unsafe version ofwriteValue_address().static voidnwriteValue_address(long struct, long value)Unsafe version ofwriteValue_address.static longnwriteValue_alias(long struct)Unsafe version ofwriteValue_alias().static voidnwriteValue_alias(long struct, long value)Unsafe version ofwriteValue_alias.static intnwriteValue_flags(long struct)Unsafe version ofwriteValue_flags().static voidnwriteValue_flags(long struct, int value)Unsafe version ofwriteValue_flags.static intnwriteValue_operation(long struct)Unsafe version ofwriteValue_operation().static voidnwriteValue_operation(long struct, int value)Unsafe version ofwriteValue_operation.static intnwriteValue_value(long struct)Unsafe version ofwriteValue_value().static voidnwriteValue_value(long struct, int value)Unsafe version ofwriteValue_value.static longnwriteValue_value64(long struct)Unsafe version ofwriteValue_value64().static voidnwriteValue_value64(long struct, long value)Unsafe version ofwriteValue_value64.intoperation()CUstreamBatchMemOpParamsoperation(int value)Sets the specified value to theoperationfield.java.nio.LongBufferpad()longpad(int index)CUstreamBatchMemOpParamspad(int index, long value)Sets the specified value at the specified index of thepadfield.CUstreamBatchMemOpParamspad(java.nio.LongBuffer value)Copies the specifiedLongBufferto thepadfield.CUstreamBatchMemOpParamsset(CUstreamBatchMemOpParams src)Copies the specified struct data to this struct.intsizeof()longwaitValue_address()CUstreamBatchMemOpParamswaitValue_address(long value)Sets the specified value to theaddressfield.longwaitValue_alias()For driver internal use.CUstreamBatchMemOpParamswaitValue_alias(long value)Sets the specified value to thewaitValue_alias()field.intwaitValue_flags()CUstreamBatchMemOpParamswaitValue_flags(int value)Sets the specified value to theflagsfield.intwaitValue_operation()CUstreamBatchMemOpParamswaitValue_operation(int value)Sets the specified value to theoperationfield.intwaitValue_value()CUstreamBatchMemOpParamswaitValue_value(int value)Sets the specified value to thevaluefield.longwaitValue_value64()CUstreamBatchMemOpParamswaitValue_value64(long value)Sets the specified value to thevalue64field.longwriteValue_address()CUstreamBatchMemOpParamswriteValue_address(long value)Sets the specified value to theaddressfield.longwriteValue_alias()For driver internal use.CUstreamBatchMemOpParamswriteValue_alias(long value)Sets the specified value to thewriteValue_alias()field.intwriteValue_flags()CUstreamBatchMemOpParamswriteValue_flags(int value)Sets the specified value to theflagsfield.intwriteValue_operation()CUstreamBatchMemOpParamswriteValue_operation(int value)Sets the specified value to theoperationfield.intwriteValue_value()CUstreamBatchMemOpParamswriteValue_value(int value)Sets the specified value to thevaluefield.longwriteValue_value64()CUstreamBatchMemOpParamswriteValue_value64(long value)Sets the specified value to thevalue64field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
OPERATION, WAITVALUE, WAITVALUE_OPERATION, WAITVALUE_ADDRESS, WAITVALUE_VALUE, WAITVALUE_VALUE64, WAITVALUE_FLAGS, WAITVALUE_ALIAS, WRITEVALUE, WRITEVALUE_OPERATION, WRITEVALUE_ADDRESS, WRITEVALUE_VALUE, WRITEVALUE_VALUE64, WRITEVALUE_FLAGS, WRITEVALUE_ALIAS, FLUSHREMOTEWRITES, FLUSHREMOTEWRITES_OPERATION, FLUSHREMOTEWRITES_FLAGS, PAD
The struct member offsets.
-
-
Constructor Detail
-
CUstreamBatchMemOpParams
public CUstreamBatchMemOpParams(java.nio.ByteBuffer container)
Creates aCUstreamBatchMemOpParamsinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
operation
public int operation()
- Returns:
- the value of the
operationfield.
-
waitValue_operation
public int waitValue_operation()
- Returns:
- the value of the
waitValue.operationfield.
-
waitValue_address
public long waitValue_address()
- Returns:
- the value of the
waitValue.addressfield.
-
waitValue_value
public int waitValue_value()
- Returns:
- the value of the
waitValue.valuefield.
-
waitValue_value64
public long waitValue_value64()
- Returns:
- the value of the
waitValue.value64field.
-
waitValue_flags
public int waitValue_flags()
- Returns:
- the value of the
waitValue.flagsfield.
-
waitValue_alias
public long waitValue_alias()
For driver internal use. Initial value is unimportant.
-
writeValue_operation
public int writeValue_operation()
- Returns:
- the value of the
writeValue.operationfield.
-
writeValue_address
public long writeValue_address()
- Returns:
- the value of the
writeValue.addressfield.
-
writeValue_value
public int writeValue_value()
- Returns:
- the value of the
writeValue.valuefield.
-
writeValue_value64
public long writeValue_value64()
- Returns:
- the value of the
writeValue.value64field.
-
writeValue_flags
public int writeValue_flags()
- Returns:
- the value of the
writeValue.flagsfield.
-
writeValue_alias
public long writeValue_alias()
For driver internal use. Initial value is unimportant.
-
flushRemoteWrites_operation
public int flushRemoteWrites_operation()
- Returns:
- the value of the
flushRemoteWrites.operationfield.
-
flushRemoteWrites_flags
public int flushRemoteWrites_flags()
- Returns:
- the value of the
flushRemoteWrites.flagsfield.
-
pad
public java.nio.LongBuffer pad()
- Returns:
- a
LongBufferview of thepadfield.
-
pad
public long pad(int index)
- Returns:
- the value at the specified index of the
padfield.
-
operation, waitValue_operation
public CUstreamBatchMemOpParams operation(int value) public CUstreamBatchMemOpParams waitValue_operation(int value)
Sets the specified value to theoperationfield.
-
waitValue_address
public CUstreamBatchMemOpParams waitValue_address(long value)
Sets the specified value to theaddressfield.
-
waitValue_value
public CUstreamBatchMemOpParams waitValue_value(int value)
Sets the specified value to thevaluefield.
-
waitValue_value64
public CUstreamBatchMemOpParams waitValue_value64(long value)
Sets the specified value to thevalue64field.
-
waitValue_flags
public CUstreamBatchMemOpParams waitValue_flags(int value)
Sets the specified value to theflagsfield.
-
waitValue_alias
public CUstreamBatchMemOpParams waitValue_alias(long value)
Sets the specified value to thewaitValue_alias()field.
-
writeValue_operation
public CUstreamBatchMemOpParams writeValue_operation(int value)
Sets the specified value to theoperationfield.
-
writeValue_address
public CUstreamBatchMemOpParams writeValue_address(long value)
Sets the specified value to theaddressfield.
-
writeValue_value
public CUstreamBatchMemOpParams writeValue_value(int value)
Sets the specified value to thevaluefield.
-
writeValue_value64
public CUstreamBatchMemOpParams writeValue_value64(long value)
Sets the specified value to thevalue64field.
-
writeValue_flags
public CUstreamBatchMemOpParams writeValue_flags(int value)
Sets the specified value to theflagsfield.
-
writeValue_alias
public CUstreamBatchMemOpParams writeValue_alias(long value)
Sets the specified value to thewriteValue_alias()field.
-
flushRemoteWrites_operation
public CUstreamBatchMemOpParams flushRemoteWrites_operation(int value)
Sets the specified value to theoperationfield.
-
flushRemoteWrites_flags
public CUstreamBatchMemOpParams flushRemoteWrites_flags(int value)
Sets the specified value to theflagsfield.
-
pad
public CUstreamBatchMemOpParams pad(java.nio.LongBuffer value)
Copies the specifiedLongBufferto thepadfield.
-
pad
public CUstreamBatchMemOpParams pad(int index, long value)
Sets the specified value at the specified index of thepadfield.
-
set
public CUstreamBatchMemOpParams set(CUstreamBatchMemOpParams src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUstreamBatchMemOpParams malloc()
Returns a newCUstreamBatchMemOpParamsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUstreamBatchMemOpParams calloc()
Returns a newCUstreamBatchMemOpParamsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUstreamBatchMemOpParams create()
Returns a newCUstreamBatchMemOpParamsinstance allocated withBufferUtils.
-
create
public static CUstreamBatchMemOpParams create(long address)
Returns a newCUstreamBatchMemOpParamsinstance for the specified memory address.
-
createSafe
@Nullable public static CUstreamBatchMemOpParams createSafe(long address)
-
malloc
public static CUstreamBatchMemOpParams.Buffer malloc(int capacity)
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUstreamBatchMemOpParams.Buffer calloc(int capacity)
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUstreamBatchMemOpParams.Buffer create(int capacity)
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUstreamBatchMemOpParams.Buffer create(long address, int capacity)
Create aCUstreamBatchMemOpParams.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUstreamBatchMemOpParams.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUstreamBatchMemOpParams mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUstreamBatchMemOpParams callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUstreamBatchMemOpParams mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUstreamBatchMemOpParams callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUstreamBatchMemOpParams.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUstreamBatchMemOpParams.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CUstreamBatchMemOpParams.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUstreamBatchMemOpParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CUstreamBatchMemOpParams malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUstreamBatchMemOpParams calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUstreamBatchMemOpParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUstreamBatchMemOpParams.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUstreamBatchMemOpParams.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUstreamBatchMemOpParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
noperation
public static int noperation(long struct)
Unsafe version ofoperation().
-
nwaitValue_operation
public static int nwaitValue_operation(long struct)
Unsafe version ofwaitValue_operation().
-
nwaitValue_address
public static long nwaitValue_address(long struct)
Unsafe version ofwaitValue_address().
-
nwaitValue_value
public static int nwaitValue_value(long struct)
Unsafe version ofwaitValue_value().
-
nwaitValue_value64
public static long nwaitValue_value64(long struct)
Unsafe version ofwaitValue_value64().
-
nwaitValue_flags
public static int nwaitValue_flags(long struct)
Unsafe version ofwaitValue_flags().
-
nwaitValue_alias
public static long nwaitValue_alias(long struct)
Unsafe version ofwaitValue_alias().
-
nwriteValue_operation
public static int nwriteValue_operation(long struct)
Unsafe version ofwriteValue_operation().
-
nwriteValue_address
public static long nwriteValue_address(long struct)
Unsafe version ofwriteValue_address().
-
nwriteValue_value
public static int nwriteValue_value(long struct)
Unsafe version ofwriteValue_value().
-
nwriteValue_value64
public static long nwriteValue_value64(long struct)
Unsafe version ofwriteValue_value64().
-
nwriteValue_flags
public static int nwriteValue_flags(long struct)
Unsafe version ofwriteValue_flags().
-
nwriteValue_alias
public static long nwriteValue_alias(long struct)
Unsafe version ofwriteValue_alias().
-
nflushRemoteWrites_operation
public static int nflushRemoteWrites_operation(long struct)
Unsafe version offlushRemoteWrites_operation().
-
nflushRemoteWrites_flags
public static int nflushRemoteWrites_flags(long struct)
Unsafe version offlushRemoteWrites_flags().
-
npad
public static java.nio.LongBuffer npad(long struct)
Unsafe version ofpad().
-
npad
public static long npad(long struct, int index)Unsafe version ofpad.
-
noperation
public static void noperation(long struct, int value)Unsafe version ofoperation.
-
nwaitValue_operation
public static void nwaitValue_operation(long struct, int value)Unsafe version ofwaitValue_operation.
-
nwaitValue_address
public static void nwaitValue_address(long struct, long value)Unsafe version ofwaitValue_address.
-
nwaitValue_value
public static void nwaitValue_value(long struct, int value)Unsafe version ofwaitValue_value.
-
nwaitValue_value64
public static void nwaitValue_value64(long struct, long value)Unsafe version ofwaitValue_value64.
-
nwaitValue_flags
public static void nwaitValue_flags(long struct, int value)Unsafe version ofwaitValue_flags.
-
nwaitValue_alias
public static void nwaitValue_alias(long struct, long value)Unsafe version ofwaitValue_alias.
-
nwriteValue_operation
public static void nwriteValue_operation(long struct, int value)Unsafe version ofwriteValue_operation.
-
nwriteValue_address
public static void nwriteValue_address(long struct, long value)Unsafe version ofwriteValue_address.
-
nwriteValue_value
public static void nwriteValue_value(long struct, int value)Unsafe version ofwriteValue_value.
-
nwriteValue_value64
public static void nwriteValue_value64(long struct, long value)Unsafe version ofwriteValue_value64.
-
nwriteValue_flags
public static void nwriteValue_flags(long struct, int value)Unsafe version ofwriteValue_flags.
-
nwriteValue_alias
public static void nwriteValue_alias(long struct, long value)Unsafe version ofwriteValue_alias.
-
nflushRemoteWrites_operation
public static void nflushRemoteWrites_operation(long struct, int value)Unsafe version offlushRemoteWrites_operation.
-
nflushRemoteWrites_flags
public static void nflushRemoteWrites_flags(long struct, int value)Unsafe version offlushRemoteWrites_flags.
-
npad
public static void npad(long struct, java.nio.LongBuffer value)Unsafe version ofpad.
-
npad
public static void npad(long struct, int index, long value)Unsafe version ofpad.
-
-