Package org.lwjgl.cuda
Class CUlaunchAttributeValue
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUlaunchAttributeValue>
org.lwjgl.cuda.CUlaunchAttributeValue
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUlaunchAttributeValue
extends org.lwjgl.system.Struct<CUlaunchAttributeValue>
implements org.lwjgl.system.NativeResource
Layout
union CUlaunchAttributeValue {
char pad[64];
CUaccessPolicyWindow accessPolicyWindow;
int cooperative;
CUsynchronizationPolicy syncPolicy;
struct {
unsigned int x;
unsigned int y;
unsigned int z;
} clusterDim;
CUclusterSchedulingPolicy clusterSchedulingPolicyPreference;
int programmaticStreamSerializationAllowed;
struct {
CUevent event;
int flags;
int triggerAtBlockStart;
} programmaticEvent;
int priority;
CUlaunchMemSyncDomainMap memSyncDomainMap;
CUlaunchMemSyncDomain memSyncDomain;
}-
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 member offsets.static 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 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
ConstructorsConstructorDescriptionCUlaunchAttributeValue(ByteBuffer container) Creates aCUlaunchAttributeValueinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionaccessPolicyWindow(Consumer<CUaccessPolicyWindow> consumer) Passes theaccessPolicyWindowfield to the specifiedConsumer.Copies the specifiedCUaccessPolicyWindowto theaccessPolicyWindowfield.static CUlaunchAttributeValuecalloc()Returns a newCUlaunchAttributeValueinstance allocated withmemCalloc.calloc(int capacity) Returns a newCUlaunchAttributeValue.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchAttributeValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUlaunchAttributeValuecalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchAttributeValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intclusterDim_x(int value) Sets the specified value to thexfield.intclusterDim_y(int value) Sets the specified value to theyfield.intclusterDim_z(int value) Sets the specified value to thezfield.intclusterSchedulingPolicyPreference(int value) Sets the specified value to theclusterSchedulingPolicyPreferencefield.intcooperative(int value) Sets the specified value to thecooperativefield.static CUlaunchAttributeValuecreate()Returns a newCUlaunchAttributeValueinstance allocated withBufferUtils.create(int capacity) Returns a newCUlaunchAttributeValue.Bufferinstance allocated withBufferUtils.static CUlaunchAttributeValuecreate(long address) Returns a newCUlaunchAttributeValueinstance for the specified memory address.create(long address, int capacity) Create aCUlaunchAttributeValue.Bufferinstance at the specified memory.static @Nullable CUlaunchAttributeValuecreateSafe(long address) static @Nullable CUlaunchAttributeValue.BuffercreateSafe(long address, int capacity) static CUlaunchAttributeValuemalloc()Returns a newCUlaunchAttributeValueinstance allocated withmemAlloc.malloc(int capacity) Returns a newCUlaunchAttributeValue.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchAttributeValue.Bufferinstance allocated on the specifiedMemoryStack.static CUlaunchAttributeValuemalloc(org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchAttributeValueinstance allocated on the specifiedMemoryStack.intmemSyncDomain(int value) Sets the specified value to thememSyncDomainfield.memSyncDomainMap(Consumer<CUlaunchMemSyncDomainMap> consumer) Passes thememSyncDomainMapfield to the specifiedConsumer.Copies the specifiedCUlaunchMemSyncDomainMapto thememSyncDomainMapfield.static CUaccessPolicyWindownaccessPolicyWindow(long struct) Unsafe version ofaccessPolicyWindow().static voidnaccessPolicyWindow(long struct, CUaccessPolicyWindow value) Unsafe version ofaccessPolicyWindow.static intnclusterDim_x(long struct) Unsafe version ofclusterDim_x().static voidnclusterDim_x(long struct, int value) Unsafe version ofclusterDim_x.static intnclusterDim_y(long struct) Unsafe version ofclusterDim_y().static voidnclusterDim_y(long struct, int value) Unsafe version ofclusterDim_y.static intnclusterDim_z(long struct) Unsafe version ofclusterDim_z().static voidnclusterDim_z(long struct, int value) Unsafe version ofclusterDim_z.static intnclusterSchedulingPolicyPreference(long struct) Unsafe version ofclusterSchedulingPolicyPreference().static voidnclusterSchedulingPolicyPreference(long struct, int value) Unsafe version ofclusterSchedulingPolicyPreference.static intncooperative(long struct) Unsafe version ofcooperative().static voidncooperative(long struct, int value) Unsafe version ofcooperative.static intnmemSyncDomain(long struct) Unsafe version ofmemSyncDomain().static voidnmemSyncDomain(long struct, int value) Unsafe version ofmemSyncDomain.static CUlaunchMemSyncDomainMapnmemSyncDomainMap(long struct) Unsafe version ofmemSyncDomainMap().static voidnmemSyncDomainMap(long struct, CUlaunchMemSyncDomainMap value) Unsafe version ofmemSyncDomainMap.static ByteBuffernpad(long struct) Unsafe version ofpad().static bytenpad(long struct, int index) Unsafe version ofpad.static voidnpad(long struct, int index, byte value) Unsafe version ofpad.static voidnpad(long struct, ByteBuffer value) Unsafe version ofpad.static intnpriority(long struct) Unsafe version ofpriority().static voidnpriority(long struct, int value) Unsafe version ofpriority.static longnprogrammaticEvent_event(long struct) Unsafe version ofprogrammaticEvent_event().static voidnprogrammaticEvent_event(long struct, long value) Unsafe version ofprogrammaticEvent_event.static intnprogrammaticEvent_flags(long struct) Unsafe version ofprogrammaticEvent_flags().static voidnprogrammaticEvent_flags(long struct, int value) Unsafe version ofprogrammaticEvent_flags.static intnprogrammaticEvent_triggerAtBlockStart(long struct) Unsafe version ofprogrammaticEvent_triggerAtBlockStart().static voidnprogrammaticEvent_triggerAtBlockStart(long struct, int value) Unsafe version ofprogrammaticEvent_triggerAtBlockStart.static intnprogrammaticStreamSerializationAllowed(long struct) Unsafe version ofprogrammaticStreamSerializationAllowed().static voidnprogrammaticStreamSerializationAllowed(long struct, int value) Unsafe version ofprogrammaticStreamSerializationAllowed.static intnsyncPolicy(long struct) Unsafe version ofsyncPolicy().static voidnsyncPolicy(long struct, int value) Unsafe version ofsyncPolicy.pad()bytepad(int index) pad(int index, byte value) Sets the specified value at the specified index of thepadfield.pad(ByteBuffer value) Copies the specifiedByteBufferto thepadfield.intpriority()priority(int value) Sets the specified value to thepriorityfield.longprogrammaticEvent_event(long value) Sets the specified value to theeventfield.intprogrammaticEvent_flags(int value) Sets the specified value to theflagsfield.intprogrammaticEvent_triggerAtBlockStart(int value) Sets the specified value to thetriggerAtBlockStartfield.intprogrammaticStreamSerializationAllowed(int value) Sets the specified value to theprogrammaticStreamSerializationAllowedfield.Copies the specified struct data to this struct.intsizeof()intsyncPolicy(int value) Sets the specified value to thesyncPolicyfield.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. -
PAD
public static final int PADThe struct member offsets. -
ACCESSPOLICYWINDOW
public static final int ACCESSPOLICYWINDOWThe struct member offsets. -
COOPERATIVE
public static final int COOPERATIVEThe struct member offsets. -
SYNCPOLICY
public static final int SYNCPOLICYThe struct member offsets. -
CLUSTERDIM
public static final int CLUSTERDIMThe struct member offsets. -
CLUSTERDIM_X
public static final int CLUSTERDIM_XThe struct member offsets. -
CLUSTERDIM_Y
public static final int CLUSTERDIM_YThe struct member offsets. -
CLUSTERDIM_Z
public static final int CLUSTERDIM_ZThe struct member offsets. -
CLUSTERSCHEDULINGPOLICYPREFERENCE
public static final int CLUSTERSCHEDULINGPOLICYPREFERENCEThe struct member offsets. -
PROGRAMMATICSTREAMSERIALIZATIONALLOWED
public static final int PROGRAMMATICSTREAMSERIALIZATIONALLOWEDThe struct member offsets. -
PROGRAMMATICEVENT
public static final int PROGRAMMATICEVENTThe struct member offsets. -
PROGRAMMATICEVENT_EVENT
public static final int PROGRAMMATICEVENT_EVENTThe struct member offsets. -
PROGRAMMATICEVENT_FLAGS
public static final int PROGRAMMATICEVENT_FLAGSThe struct member offsets. -
PROGRAMMATICEVENT_TRIGGERATBLOCKSTART
public static final int PROGRAMMATICEVENT_TRIGGERATBLOCKSTARTThe struct member offsets. -
PRIORITY
public static final int PRIORITYThe struct member offsets. -
MEMSYNCDOMAINMAP
public static final int MEMSYNCDOMAINMAPThe struct member offsets. -
MEMSYNCDOMAIN
public static final int MEMSYNCDOMAINThe struct member offsets.
-
-
Constructor Details
-
CUlaunchAttributeValue
Creates aCUlaunchAttributeValueinstance 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<CUlaunchAttributeValue>
-
pad
- Returns:
- a
ByteBufferview of thepadfield.
-
pad
public byte pad(int index) - Returns:
- the value at the specified index of the
padfield.
-
accessPolicyWindow
- Returns:
- a
CUaccessPolicyWindowview of theaccessPolicyWindowfield.
-
cooperative
public int cooperative()- Returns:
- the value of the
cooperativefield.
-
syncPolicy
public int syncPolicy()- Returns:
- the value of the
syncPolicyfield.
-
clusterDim_x
public int clusterDim_x()- Returns:
- the value of the
clusterDim.xfield.
-
clusterDim_y
public int clusterDim_y()- Returns:
- the value of the
clusterDim.yfield.
-
clusterDim_z
public int clusterDim_z()- Returns:
- the value of the
clusterDim.zfield.
-
clusterSchedulingPolicyPreference
public int clusterSchedulingPolicyPreference()- Returns:
- the value of the
clusterSchedulingPolicyPreferencefield.
-
programmaticStreamSerializationAllowed
public int programmaticStreamSerializationAllowed()- Returns:
- the value of the
programmaticStreamSerializationAllowedfield.
-
programmaticEvent_event
public long programmaticEvent_event()- Returns:
- the value of the
programmaticEvent.eventfield.
-
programmaticEvent_flags
public int programmaticEvent_flags()- Returns:
- the value of the
programmaticEvent.flagsfield.
-
programmaticEvent_triggerAtBlockStart
public int programmaticEvent_triggerAtBlockStart()- Returns:
- the value of the
programmaticEvent.triggerAtBlockStartfield.
-
priority
public int priority()- Returns:
- the value of the
priorityfield.
-
memSyncDomainMap
- Returns:
- a
CUlaunchMemSyncDomainMapview of thememSyncDomainMapfield.
-
memSyncDomain
public int memSyncDomain()- Returns:
- the value of the
memSyncDomainfield.
-
pad
Copies the specifiedByteBufferto thepadfield. -
pad
Sets the specified value at the specified index of thepadfield. -
accessPolicyWindow
Copies the specifiedCUaccessPolicyWindowto theaccessPolicyWindowfield. -
accessPolicyWindow
Passes theaccessPolicyWindowfield to the specifiedConsumer. -
cooperative
Sets the specified value to thecooperativefield. -
syncPolicy
Sets the specified value to thesyncPolicyfield. -
clusterDim_x
Sets the specified value to thexfield. -
clusterDim_y
Sets the specified value to theyfield. -
clusterDim_z
Sets the specified value to thezfield. -
clusterSchedulingPolicyPreference
Sets the specified value to theclusterSchedulingPolicyPreferencefield. -
programmaticStreamSerializationAllowed
Sets the specified value to theprogrammaticStreamSerializationAllowedfield. -
programmaticEvent_event
Sets the specified value to theeventfield. -
programmaticEvent_flags
Sets the specified value to theflagsfield. -
programmaticEvent_triggerAtBlockStart
Sets the specified value to thetriggerAtBlockStartfield. -
priority
Sets the specified value to thepriorityfield. -
memSyncDomainMap
Copies the specifiedCUlaunchMemSyncDomainMapto thememSyncDomainMapfield. -
memSyncDomainMap
Passes thememSyncDomainMapfield to the specifiedConsumer. -
memSyncDomain
Sets the specified value to thememSyncDomainfield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newCUlaunchAttributeValueinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newCUlaunchAttributeValueinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newCUlaunchAttributeValueinstance allocated withBufferUtils. -
create
Returns a newCUlaunchAttributeValueinstance for the specified memory address. -
createSafe
-
malloc
Returns a newCUlaunchAttributeValue.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newCUlaunchAttributeValue.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newCUlaunchAttributeValue.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aCUlaunchAttributeValue.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newCUlaunchAttributeValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newCUlaunchAttributeValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUlaunchAttributeValue.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchAttributeValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static CUlaunchAttributeValue.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newCUlaunchAttributeValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
npad
Unsafe version ofpad(). -
npad
public static byte npad(long struct, int index) Unsafe version ofpad. -
naccessPolicyWindow
Unsafe version ofaccessPolicyWindow(). -
ncooperative
public static int ncooperative(long struct) Unsafe version ofcooperative(). -
nsyncPolicy
public static int nsyncPolicy(long struct) Unsafe version ofsyncPolicy(). -
nclusterDim_x
public static int nclusterDim_x(long struct) Unsafe version ofclusterDim_x(). -
nclusterDim_y
public static int nclusterDim_y(long struct) Unsafe version ofclusterDim_y(). -
nclusterDim_z
public static int nclusterDim_z(long struct) Unsafe version ofclusterDim_z(). -
nclusterSchedulingPolicyPreference
public static int nclusterSchedulingPolicyPreference(long struct) Unsafe version ofclusterSchedulingPolicyPreference(). -
nprogrammaticStreamSerializationAllowed
public static int nprogrammaticStreamSerializationAllowed(long struct) Unsafe version ofprogrammaticStreamSerializationAllowed(). -
nprogrammaticEvent_event
public static long nprogrammaticEvent_event(long struct) Unsafe version ofprogrammaticEvent_event(). -
nprogrammaticEvent_flags
public static int nprogrammaticEvent_flags(long struct) Unsafe version ofprogrammaticEvent_flags(). -
nprogrammaticEvent_triggerAtBlockStart
public static int nprogrammaticEvent_triggerAtBlockStart(long struct) Unsafe version ofprogrammaticEvent_triggerAtBlockStart(). -
npriority
public static int npriority(long struct) Unsafe version ofpriority(). -
nmemSyncDomainMap
Unsafe version ofmemSyncDomainMap(). -
nmemSyncDomain
public static int nmemSyncDomain(long struct) Unsafe version ofmemSyncDomain(). -
npad
Unsafe version ofpad. -
npad
public static void npad(long struct, int index, byte value) Unsafe version ofpad. -
naccessPolicyWindow
Unsafe version ofaccessPolicyWindow. -
ncooperative
public static void ncooperative(long struct, int value) Unsafe version ofcooperative. -
nsyncPolicy
public static void nsyncPolicy(long struct, int value) Unsafe version ofsyncPolicy. -
nclusterDim_x
public static void nclusterDim_x(long struct, int value) Unsafe version ofclusterDim_x. -
nclusterDim_y
public static void nclusterDim_y(long struct, int value) Unsafe version ofclusterDim_y. -
nclusterDim_z
public static void nclusterDim_z(long struct, int value) Unsafe version ofclusterDim_z. -
nclusterSchedulingPolicyPreference
public static void nclusterSchedulingPolicyPreference(long struct, int value) Unsafe version ofclusterSchedulingPolicyPreference. -
nprogrammaticStreamSerializationAllowed
public static void nprogrammaticStreamSerializationAllowed(long struct, int value) Unsafe version ofprogrammaticStreamSerializationAllowed. -
nprogrammaticEvent_event
public static void nprogrammaticEvent_event(long struct, long value) Unsafe version ofprogrammaticEvent_event. -
nprogrammaticEvent_flags
public static void nprogrammaticEvent_flags(long struct, int value) Unsafe version ofprogrammaticEvent_flags. -
nprogrammaticEvent_triggerAtBlockStart
public static void nprogrammaticEvent_triggerAtBlockStart(long struct, int value) Unsafe version ofprogrammaticEvent_triggerAtBlockStart. -
npriority
public static void npriority(long struct, int value) Unsafe version ofpriority. -
nmemSyncDomainMap
Unsafe version ofmemSyncDomainMap. -
nmemSyncDomain
public static void nmemSyncDomain(long struct, int value) Unsafe version ofmemSyncDomain.
-