Top Description Inners Fields Constructors Methods
org.lwjgl.cuda

public Class CUlaunchAttributeValue

extends Struct<CUlaunchAttributeValue>
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


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 and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ACCESSPOLICYWINDOW

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CLUSTERDIM

The struct member offsets.

public static final int
CLUSTERDIM_X

The struct member offsets.

public static final int
CLUSTERDIM_Y

The struct member offsets.

public static final int
CLUSTERDIM_Z

The struct member offsets.

public static final int
CLUSTERSCHEDULINGPOLICYPREFERENCE

The struct member offsets.

public static final int
COOPERATIVE

The struct member offsets.

public static final int
MEMSYNCDOMAIN

The struct member offsets.

public static final int
MEMSYNCDOMAINMAP

The struct member offsets.

public static final int
PAD

The struct member offsets.

public static final int
PRIORITY

The struct member offsets.

public static final int
PROGRAMMATICEVENT

The struct member offsets.

public static final int
PROGRAMMATICEVENT_EVENT

The struct member offsets.

public static final int
PROGRAMMATICEVENT_FLAGS

The struct member offsets.

public static final int
PROGRAMMATICEVENT_TRIGGERATBLOCKSTART

The struct member offsets.

public static final int
PROGRAMMATICSTREAMSERIALIZATIONALLOWED

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SYNCPOLICY

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
CUlaunchAttributeValue(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public CUaccessPolicyWindow

Returns:

a CUaccessPolicyWindow view of the accessPolicyWindow field.
accessPolicyWindow
()

public CUlaunchAttributeValue
accessPolicyWindow(CUaccessPolicyWindow value)

Copies the specified CUaccessPolicyWindow to the accessPolicyWindow field.

public CUlaunchAttributeValue
accessPolicyWindow(Consumer<CUaccessPolicyWindow> consumer)

Passes the accessPolicyWindow field to the specified Consumer.

public static CUlaunchAttributeValue
calloc()

Returns a new CUlaunchAttributeValue instance allocated with memCalloc.

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

Returns a new CUlaunchAttributeValue.Buffer instance allocated with memCalloc.

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

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

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

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

public int

Returns:

the value of the clusterDim.x field.
clusterDim_x
()

public CUlaunchAttributeValue
clusterDim_x(int value)

Sets the specified value to the x field.

public int

Returns:

the value of the clusterDim.y field.
clusterDim_y
()

public CUlaunchAttributeValue
clusterDim_y(int value)

Sets the specified value to the y field.

public int

Returns:

the value of the clusterDim.z field.
clusterDim_z
()

public CUlaunchAttributeValue
clusterDim_z(int value)

Sets the specified value to the z field.

public int

Returns:

the value of the clusterSchedulingPolicyPreference field.
clusterSchedulingPolicyPreference
()

public CUlaunchAttributeValue
clusterSchedulingPolicyPreference(int value)

Sets the specified value to the clusterSchedulingPolicyPreference field.

public int

Returns:

the value of the cooperative field.
cooperative
()

public CUlaunchAttributeValue
cooperative(int value)

Sets the specified value to the cooperative field.

protected CUlaunchAttributeValue
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 CUlaunchAttributeValue
create()

Returns a new CUlaunchAttributeValue instance allocated with BufferUtils.

public static CUlaunchAttributeValue
create(long address)

Returns a new CUlaunchAttributeValue instance for the specified memory address.

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

Returns a new CUlaunchAttributeValue.Buffer instance allocated with BufferUtils.

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

Create a CUlaunchAttributeValue.Buffer instance at the specified memory.

public static CUlaunchAttributeValue
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public static CUlaunchAttributeValue
malloc()

Returns a new CUlaunchAttributeValue instance allocated with memAlloc.

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

Returns a new CUlaunchAttributeValue.Buffer instance allocated with memAlloc.

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

Returns a new CUlaunchAttributeValue instance allocated on the specified MemoryStack.

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

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

public int

Returns:

the value of the memSyncDomain field.
memSyncDomain
()

public CUlaunchAttributeValue
memSyncDomain(int value)

Sets the specified value to the memSyncDomain field.

public CUlaunchMemSyncDomainMap

Returns:

a CUlaunchMemSyncDomainMap view of the memSyncDomainMap field.
memSyncDomainMap
()

public CUlaunchAttributeValue
memSyncDomainMap(CUlaunchMemSyncDomainMap value)

Copies the specified CUlaunchMemSyncDomainMap to the memSyncDomainMap field.

public CUlaunchAttributeValue
memSyncDomainMap(Consumer<CUlaunchMemSyncDomainMap> consumer)

Passes the memSyncDomainMap field to the specified Consumer.

public static CUaccessPolicyWindow
naccessPolicyWindow(long struct)

Unsafe version of accessPolicyWindow.

public static void
naccessPolicyWindow(long struct, CUaccessPolicyWindow value)

Unsafe version of accessPolicyWindow.

public static int
nclusterDim_x(long struct)

Unsafe version of clusterDim_x.

public static void
nclusterDim_x(long struct, int value)

Unsafe version of clusterDim_x.

public static int
nclusterDim_y(long struct)

Unsafe version of clusterDim_y.

public static void
nclusterDim_y(long struct, int value)

Unsafe version of clusterDim_y.

public static int
nclusterDim_z(long struct)

Unsafe version of clusterDim_z.

public static void
nclusterDim_z(long struct, int value)

Unsafe version of clusterDim_z.

public static int
public static void
public static int
ncooperative(long struct)

Unsafe version of cooperative.

public static void
ncooperative(long struct, int value)

Unsafe version of cooperative.

public static int
nmemSyncDomain(long struct)

Unsafe version of memSyncDomain.

public static void
nmemSyncDomain(long struct, int value)

Unsafe version of memSyncDomain.

public static CUlaunchMemSyncDomainMap
nmemSyncDomainMap(long struct)

Unsafe version of memSyncDomainMap.

public static void
nmemSyncDomainMap(long struct, CUlaunchMemSyncDomainMap value)

Unsafe version of memSyncDomainMap.

public static ByteBuffer
npad(long struct)

Unsafe version of pad.

public static byte
npad(long struct, int index)

Unsafe version of pad.

public static void
npad(long struct, ByteBuffer value)

Unsafe version of pad.

public static void
npad(long struct, int index, byte value)

Unsafe version of pad.

public static int
npriority(long struct)

Unsafe version of priority.

public static void
npriority(long struct, int value)

Unsafe version of priority.

public static long
nprogrammaticEvent_event(long struct)

Unsafe version of programmaticEvent_event.

public static void
nprogrammaticEvent_event(long struct, long value)

Unsafe version of programmaticEvent_event.

public static int
nprogrammaticEvent_flags(long struct)

Unsafe version of programmaticEvent_flags.

public static void
nprogrammaticEvent_flags(long struct, int value)

Unsafe version of programmaticEvent_flags.

public static int
public static void
public static int
public static void
public static int
nsyncPolicy(long struct)

Unsafe version of syncPolicy.

public static void
nsyncPolicy(long struct, int value)

Unsafe version of syncPolicy.

public ByteBuffer

Returns:

a ByteBuffer view of the pad field.
pad
()

public byte

Returns:

the value at the specified index of the pad field.
pad
(int index)

public CUlaunchAttributeValue
pad(ByteBuffer value)

Copies the specified ByteBuffer to the pad field.

public CUlaunchAttributeValue
pad(int index, byte value)

Sets the specified value at the specified index of the pad field.

public int

Returns:

the value of the priority field.
priority
()

public CUlaunchAttributeValue
priority(int value)

Sets the specified value to the priority field.

public long

Returns:

the value of the programmaticEvent.event field.
programmaticEvent_event
()

public CUlaunchAttributeValue
programmaticEvent_event(long value)

Sets the specified value to the event field.

public int

Returns:

the value of the programmaticEvent.flags field.
programmaticEvent_flags
()

public CUlaunchAttributeValue
programmaticEvent_flags(int value)

Sets the specified value to the flags field.

public int

Returns:

the value of the programmaticEvent.triggerAtBlockStart field.
programmaticEvent_triggerAtBlockStart
()

public CUlaunchAttributeValue
programmaticEvent_triggerAtBlockStart(int value)

Sets the specified value to the triggerAtBlockStart field.

public int

Returns:

the value of the programmaticStreamSerializationAllowed field.
programmaticStreamSerializationAllowed
()

public CUlaunchAttributeValue
programmaticStreamSerializationAllowed(int value)

Sets the specified value to the programmaticStreamSerializationAllowed field.

public CUlaunchAttributeValue

Returns:

this struct
set
(CUlaunchAttributeValue
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

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

Returns sizeof(struct).
public int

Returns:

the value of the syncPolicy field.
syncPolicy
()

public CUlaunchAttributeValue
syncPolicy(int value)

Sets the specified value to the syncPolicy field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate