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;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PAD

      public static final int PAD
      The struct member offsets.
    • ACCESSPOLICYWINDOW

      public static final int ACCESSPOLICYWINDOW
      The struct member offsets.
    • COOPERATIVE

      public static final int COOPERATIVE
      The struct member offsets.
    • SYNCPOLICY

      public static final int SYNCPOLICY
      The struct member offsets.
    • CLUSTERDIM

      public static final int CLUSTERDIM
      The struct member offsets.
    • CLUSTERDIM_X

      public static final int CLUSTERDIM_X
      The struct member offsets.
    • CLUSTERDIM_Y

      public static final int CLUSTERDIM_Y
      The struct member offsets.
    • CLUSTERDIM_Z

      public static final int CLUSTERDIM_Z
      The struct member offsets.
    • CLUSTERSCHEDULINGPOLICYPREFERENCE

      public static final int CLUSTERSCHEDULINGPOLICYPREFERENCE
      The struct member offsets.
    • PROGRAMMATICSTREAMSERIALIZATIONALLOWED

      public static final int PROGRAMMATICSTREAMSERIALIZATIONALLOWED
      The struct member offsets.
    • PROGRAMMATICEVENT

      public static final int PROGRAMMATICEVENT
      The struct member offsets.
    • PROGRAMMATICEVENT_EVENT

      public static final int PROGRAMMATICEVENT_EVENT
      The struct member offsets.
    • PROGRAMMATICEVENT_FLAGS

      public static final int PROGRAMMATICEVENT_FLAGS
      The struct member offsets.
    • PROGRAMMATICEVENT_TRIGGERATBLOCKSTART

      public static final int PROGRAMMATICEVENT_TRIGGERATBLOCKSTART
      The struct member offsets.
    • PRIORITY

      public static final int PRIORITY
      The struct member offsets.
    • MEMSYNCDOMAINMAP

      public static final int MEMSYNCDOMAINMAP
      The struct member offsets.
    • MEMSYNCDOMAIN

      public static final int MEMSYNCDOMAIN
      The struct member offsets.
  • Constructor Details

    • CUlaunchAttributeValue

      public CUlaunchAttributeValue(ByteBuffer container)
      Creates a CUlaunchAttributeValue instance at the current position of the specified ByteBuffer container. 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:
      sizeof in class org.lwjgl.system.Struct<CUlaunchAttributeValue>
    • pad

      public ByteBuffer pad()
      Returns:
      a ByteBuffer view of the pad field.
    • pad

      public byte pad(int index)
      Returns:
      the value at the specified index of the pad field.
    • accessPolicyWindow

      public CUaccessPolicyWindow accessPolicyWindow()
      Returns:
      a CUaccessPolicyWindow view of the accessPolicyWindow field.
    • cooperative

      public int cooperative()
      Returns:
      the value of the cooperative field.
    • syncPolicy

      public int syncPolicy()
      Returns:
      the value of the syncPolicy field.
    • clusterDim_x

      public int clusterDim_x()
      Returns:
      the value of the clusterDim.x field.
    • clusterDim_y

      public int clusterDim_y()
      Returns:
      the value of the clusterDim.y field.
    • clusterDim_z

      public int clusterDim_z()
      Returns:
      the value of the clusterDim.z field.
    • clusterSchedulingPolicyPreference

      public int clusterSchedulingPolicyPreference()
      Returns:
      the value of the clusterSchedulingPolicyPreference field.
    • programmaticStreamSerializationAllowed

      public int programmaticStreamSerializationAllowed()
      Returns:
      the value of the programmaticStreamSerializationAllowed field.
    • programmaticEvent_event

      public long programmaticEvent_event()
      Returns:
      the value of the programmaticEvent.event field.
    • programmaticEvent_flags

      public int programmaticEvent_flags()
      Returns:
      the value of the programmaticEvent.flags field.
    • programmaticEvent_triggerAtBlockStart

      public int programmaticEvent_triggerAtBlockStart()
      Returns:
      the value of the programmaticEvent.triggerAtBlockStart field.
    • priority

      public int priority()
      Returns:
      the value of the priority field.
    • memSyncDomainMap

      public CUlaunchMemSyncDomainMap memSyncDomainMap()
      Returns:
      a CUlaunchMemSyncDomainMap view of the memSyncDomainMap field.
    • memSyncDomain

      public int memSyncDomain()
      Returns:
      the value of the memSyncDomain field.
    • pad

      public CUlaunchAttributeValue pad(ByteBuffer value)
      Copies the specified ByteBuffer to the pad field.
    • pad

      public CUlaunchAttributeValue pad(int index, byte value)
      Sets the specified value at the specified index of the pad field.
    • accessPolicyWindow

      public CUlaunchAttributeValue accessPolicyWindow(CUaccessPolicyWindow value)
      Copies the specified CUaccessPolicyWindow to the accessPolicyWindow field.
    • accessPolicyWindow

      public CUlaunchAttributeValue accessPolicyWindow(Consumer<CUaccessPolicyWindow> consumer)
      Passes the accessPolicyWindow field to the specified Consumer.
    • cooperative

      public CUlaunchAttributeValue cooperative(int value)
      Sets the specified value to the cooperative field.
    • syncPolicy

      public CUlaunchAttributeValue syncPolicy(int value)
      Sets the specified value to the syncPolicy field.
    • clusterDim_x

      public CUlaunchAttributeValue clusterDim_x(int value)
      Sets the specified value to the x field.
    • clusterDim_y

      public CUlaunchAttributeValue clusterDim_y(int value)
      Sets the specified value to the y field.
    • clusterDim_z

      public CUlaunchAttributeValue clusterDim_z(int value)
      Sets the specified value to the z field.
    • clusterSchedulingPolicyPreference

      public CUlaunchAttributeValue clusterSchedulingPolicyPreference(int value)
      Sets the specified value to the clusterSchedulingPolicyPreference field.
    • programmaticStreamSerializationAllowed

      public CUlaunchAttributeValue programmaticStreamSerializationAllowed(int value)
      Sets the specified value to the programmaticStreamSerializationAllowed field.
    • programmaticEvent_event

      public CUlaunchAttributeValue programmaticEvent_event(long value)
      Sets the specified value to the event field.
    • programmaticEvent_flags

      public CUlaunchAttributeValue programmaticEvent_flags(int value)
      Sets the specified value to the flags field.
    • programmaticEvent_triggerAtBlockStart

      public CUlaunchAttributeValue programmaticEvent_triggerAtBlockStart(int value)
      Sets the specified value to the triggerAtBlockStart field.
    • priority

      public CUlaunchAttributeValue priority(int value)
      Sets the specified value to the priority field.
    • memSyncDomainMap

      public CUlaunchAttributeValue memSyncDomainMap(CUlaunchMemSyncDomainMap value)
      Copies the specified CUlaunchMemSyncDomainMap to the memSyncDomainMap field.
    • memSyncDomainMap

      public CUlaunchAttributeValue memSyncDomainMap(Consumer<CUlaunchMemSyncDomainMap> consumer)
      Passes the memSyncDomainMap field to the specified Consumer.
    • memSyncDomain

      public CUlaunchAttributeValue memSyncDomain(int value)
      Sets the specified value to the memSyncDomain field.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static CUlaunchAttributeValue malloc()
      Returns a new CUlaunchAttributeValue instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static CUlaunchAttributeValue calloc()
      Returns a new CUlaunchAttributeValue instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static CUlaunchAttributeValue create()
      Returns a new CUlaunchAttributeValue instance allocated with BufferUtils.
    • create

      public static CUlaunchAttributeValue create(long address)
      Returns a new CUlaunchAttributeValue instance for the specified memory address.
    • createSafe

      public static @Nullable CUlaunchAttributeValue createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static CUlaunchAttributeValue.Buffer malloc(int capacity)
      Returns a new CUlaunchAttributeValue.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static CUlaunchAttributeValue.Buffer calloc(int capacity)
      Returns a new CUlaunchAttributeValue.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUlaunchAttributeValue.Buffer create(int capacity)
      Returns a new CUlaunchAttributeValue.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static CUlaunchAttributeValue.Buffer create(long address, int capacity)
      Create a CUlaunchAttributeValue.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable CUlaunchAttributeValue.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static CUlaunchAttributeValue malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUlaunchAttributeValue instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static CUlaunchAttributeValue calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUlaunchAttributeValue instance allocated on the specified MemoryStack and 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 new CUlaunchAttributeValue.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static CUlaunchAttributeValue.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUlaunchAttributeValue.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • npad

      public static ByteBuffer npad(long struct)
      Unsafe version of pad().
    • npad

      public static byte npad(long struct, int index)
      Unsafe version of pad.
    • naccessPolicyWindow

      public static CUaccessPolicyWindow naccessPolicyWindow(long struct)
      Unsafe version of accessPolicyWindow().
    • ncooperative

      public static int ncooperative(long struct)
      Unsafe version of cooperative().
    • nsyncPolicy

      public static int nsyncPolicy(long struct)
      Unsafe version of syncPolicy().
    • nclusterDim_x

      public static int nclusterDim_x(long struct)
      Unsafe version of clusterDim_x().
    • nclusterDim_y

      public static int nclusterDim_y(long struct)
      Unsafe version of clusterDim_y().
    • nclusterDim_z

      public static int nclusterDim_z(long struct)
      Unsafe version of clusterDim_z().
    • nclusterSchedulingPolicyPreference

      public static int nclusterSchedulingPolicyPreference(long struct)
    • nprogrammaticStreamSerializationAllowed

      public static int nprogrammaticStreamSerializationAllowed(long struct)
    • nprogrammaticEvent_event

      public static long nprogrammaticEvent_event(long struct)
      Unsafe version of programmaticEvent_event().
    • nprogrammaticEvent_flags

      public static int nprogrammaticEvent_flags(long struct)
      Unsafe version of programmaticEvent_flags().
    • nprogrammaticEvent_triggerAtBlockStart

      public static int nprogrammaticEvent_triggerAtBlockStart(long struct)
    • npriority

      public static int npriority(long struct)
      Unsafe version of priority().
    • nmemSyncDomainMap

      public static CUlaunchMemSyncDomainMap nmemSyncDomainMap(long struct)
      Unsafe version of memSyncDomainMap().
    • nmemSyncDomain

      public static int nmemSyncDomain(long struct)
      Unsafe version of memSyncDomain().
    • npad

      public static void npad(long struct, ByteBuffer value)
      Unsafe version of pad.
    • npad

      public static void npad(long struct, int index, byte value)
      Unsafe version of pad.
    • naccessPolicyWindow

      public static void naccessPolicyWindow(long struct, CUaccessPolicyWindow value)
      Unsafe version of accessPolicyWindow.
    • ncooperative

      public static void ncooperative(long struct, int value)
      Unsafe version of cooperative.
    • nsyncPolicy

      public static void nsyncPolicy(long struct, int value)
      Unsafe version of syncPolicy.
    • nclusterDim_x

      public static void nclusterDim_x(long struct, int value)
      Unsafe version of clusterDim_x.
    • nclusterDim_y

      public static void nclusterDim_y(long struct, int value)
      Unsafe version of clusterDim_y.
    • nclusterDim_z

      public static void nclusterDim_z(long struct, int value)
      Unsafe version of clusterDim_z.
    • nclusterSchedulingPolicyPreference

      public static void nclusterSchedulingPolicyPreference(long struct, int value)
    • nprogrammaticStreamSerializationAllowed

      public static void nprogrammaticStreamSerializationAllowed(long struct, int value)
    • nprogrammaticEvent_event

      public static void nprogrammaticEvent_event(long struct, long value)
      Unsafe version of programmaticEvent_event.
    • nprogrammaticEvent_flags

      public static void nprogrammaticEvent_flags(long struct, int value)
      Unsafe version of programmaticEvent_flags.
    • nprogrammaticEvent_triggerAtBlockStart

      public static void nprogrammaticEvent_triggerAtBlockStart(long struct, int value)
    • npriority

      public static void npriority(long struct, int value)
      Unsafe version of priority.
    • nmemSyncDomainMap

      public static void nmemSyncDomainMap(long struct, CUlaunchMemSyncDomainMap value)
      Unsafe version of memSyncDomainMap.
    • nmemSyncDomain

      public static void nmemSyncDomain(long struct, int value)
      Unsafe version of memSyncDomain.