Class CUstreamBatchMemOpParams

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<CUstreamBatchMemOpParams>
org.lwjgl.cuda.CUstreamBatchMemOpParams
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class CUstreamBatchMemOpParams extends org.lwjgl.system.Struct<CUstreamBatchMemOpParams> implements org.lwjgl.system.NativeResource

Layout


 union CUstreamBatchMemOpParams {
     CUstreamBatchMemOpType operation;
     struct {
         CUstreamBatchMemOpType operation;
         CUdeviceptr address;
         union {
             cuuint32_t value;
             cuuint64_t value64;
         };
         unsigned int flags;
         CUdeviceptr alias;
     } waitValue;
     struct {
         CUstreamBatchMemOpType operation;
         CUdeviceptr address;
         union {
             cuuint32_t value;
             cuuint64_t value64;
         };
         unsigned int flags;
         CUdeviceptr alias;
     } writeValue;
     struct {
         CUstreamBatchMemOpType operation;
         unsigned int flags;
     } flushRemoteWrites;
     struct {
         CUstreamBatchMemOpType operation;
         unsigned int flags;
     } memoryBarrier;
     cuuint64_t pad[6];
 }
  • Field Details

    • SIZEOF

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

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

      public static final int OPERATION
      The struct member offsets.
    • WAITVALUE

      public static final int WAITVALUE
      The struct member offsets.
    • WAITVALUE_OPERATION

      public static final int WAITVALUE_OPERATION
      The struct member offsets.
    • WAITVALUE_ADDRESS

      public static final int WAITVALUE_ADDRESS
      The struct member offsets.
    • WAITVALUE_VALUE

      public static final int WAITVALUE_VALUE
      The struct member offsets.
    • WAITVALUE_VALUE64

      public static final int WAITVALUE_VALUE64
      The struct member offsets.
    • WAITVALUE_FLAGS

      public static final int WAITVALUE_FLAGS
      The struct member offsets.
    • WAITVALUE_ALIAS

      public static final int WAITVALUE_ALIAS
      The struct member offsets.
    • WRITEVALUE

      public static final int WRITEVALUE
      The struct member offsets.
    • WRITEVALUE_OPERATION

      public static final int WRITEVALUE_OPERATION
      The struct member offsets.
    • WRITEVALUE_ADDRESS

      public static final int WRITEVALUE_ADDRESS
      The struct member offsets.
    • WRITEVALUE_VALUE

      public static final int WRITEVALUE_VALUE
      The struct member offsets.
    • WRITEVALUE_VALUE64

      public static final int WRITEVALUE_VALUE64
      The struct member offsets.
    • WRITEVALUE_FLAGS

      public static final int WRITEVALUE_FLAGS
      The struct member offsets.
    • WRITEVALUE_ALIAS

      public static final int WRITEVALUE_ALIAS
      The struct member offsets.
    • FLUSHREMOTEWRITES

      public static final int FLUSHREMOTEWRITES
      The struct member offsets.
    • FLUSHREMOTEWRITES_OPERATION

      public static final int FLUSHREMOTEWRITES_OPERATION
      The struct member offsets.
    • FLUSHREMOTEWRITES_FLAGS

      public static final int FLUSHREMOTEWRITES_FLAGS
      The struct member offsets.
    • MEMORYBARRIER

      public static final int MEMORYBARRIER
      The struct member offsets.
    • MEMORYBARRIER_OPERATION

      public static final int MEMORYBARRIER_OPERATION
      The struct member offsets.
    • MEMORYBARRIER_FLAGS

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

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

    • CUstreamBatchMemOpParams

      public CUstreamBatchMemOpParams(ByteBuffer container)
      Creates a CUstreamBatchMemOpParams 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<CUstreamBatchMemOpParams>
    • operation

      public int operation()
      Returns:
      the value of the operation field.
    • waitValue_operation

      public int waitValue_operation()
      Returns:
      the value of the waitValue.operation field.
    • waitValue_address

      public long waitValue_address()
      Returns:
      the value of the waitValue.address field.
    • waitValue_value

      public int waitValue_value()
      Returns:
      the value of the waitValue.value field.
    • waitValue_value64

      public long waitValue_value64()
      Returns:
      the value of the waitValue.value64 field.
    • waitValue_flags

      public int waitValue_flags()
      Returns:
      the value of the waitValue.flags field.
    • waitValue_alias

      public long waitValue_alias()
      Returns:
      the value of the waitValue.alias field.
    • writeValue_operation

      public int writeValue_operation()
      Returns:
      the value of the writeValue.operation field.
    • writeValue_address

      public long writeValue_address()
      Returns:
      the value of the writeValue.address field.
    • writeValue_value

      public int writeValue_value()
      Returns:
      the value of the writeValue.value field.
    • writeValue_value64

      public long writeValue_value64()
      Returns:
      the value of the writeValue.value64 field.
    • writeValue_flags

      public int writeValue_flags()
      Returns:
      the value of the writeValue.flags field.
    • writeValue_alias

      public long writeValue_alias()
      Returns:
      the value of the writeValue.alias field.
    • flushRemoteWrites_operation

      public int flushRemoteWrites_operation()
      Returns:
      the value of the flushRemoteWrites.operation field.
    • flushRemoteWrites_flags

      public int flushRemoteWrites_flags()
      Returns:
      the value of the flushRemoteWrites.flags field.
    • memoryBarrier_operation

      public int memoryBarrier_operation()
      Returns:
      the value of the memoryBarrier.operation field.
    • memoryBarrier_flags

      public int memoryBarrier_flags()
      Returns:
      the value of the memoryBarrier.flags field.
    • pad

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

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

      public CUstreamBatchMemOpParams operation(int value)
      Sets the specified value to the operation field.
    • waitValue_operation

      public CUstreamBatchMemOpParams waitValue_operation(int value)
      Sets the specified value to the operation field.
    • waitValue_address

      public CUstreamBatchMemOpParams waitValue_address(long value)
      Sets the specified value to the address field.
    • waitValue_value

      public CUstreamBatchMemOpParams waitValue_value(int value)
      Sets the specified value to the value field.
    • waitValue_value64

      public CUstreamBatchMemOpParams waitValue_value64(long value)
      Sets the specified value to the value64 field.
    • waitValue_flags

      public CUstreamBatchMemOpParams waitValue_flags(int value)
      Sets the specified value to the flags field.
    • waitValue_alias

      public CUstreamBatchMemOpParams waitValue_alias(long value)
      Sets the specified value to the alias field.
    • writeValue_operation

      public CUstreamBatchMemOpParams writeValue_operation(int value)
      Sets the specified value to the operation field.
    • writeValue_address

      public CUstreamBatchMemOpParams writeValue_address(long value)
      Sets the specified value to the address field.
    • writeValue_value

      public CUstreamBatchMemOpParams writeValue_value(int value)
      Sets the specified value to the value field.
    • writeValue_value64

      public CUstreamBatchMemOpParams writeValue_value64(long value)
      Sets the specified value to the value64 field.
    • writeValue_flags

      public CUstreamBatchMemOpParams writeValue_flags(int value)
      Sets the specified value to the flags field.
    • writeValue_alias

      public CUstreamBatchMemOpParams writeValue_alias(long value)
      Sets the specified value to the alias field.
    • flushRemoteWrites_operation

      public CUstreamBatchMemOpParams flushRemoteWrites_operation(int value)
      Sets the specified value to the operation field.
    • flushRemoteWrites_flags

      public CUstreamBatchMemOpParams flushRemoteWrites_flags(int value)
      Sets the specified value to the flags field.
    • memoryBarrier_operation

      public CUstreamBatchMemOpParams memoryBarrier_operation(int value)
      Sets the specified value to the operation field.
    • memoryBarrier_flags

      public CUstreamBatchMemOpParams memoryBarrier_flags(int value)
      Sets the specified value to the flags field.
    • pad

      Copies the specified LongBuffer to the pad field.
    • pad

      public CUstreamBatchMemOpParams pad(int index, long value)
      Sets the specified value at the specified index of the pad field.
    • set

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

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

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

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

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

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

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

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

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

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

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

      @Deprecated public static CUstreamBatchMemOpParams mallocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUstreamBatchMemOpParams callocStack()
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUstreamBatchMemOpParams mallocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
    • callocStack

      @Deprecated public static CUstreamBatchMemOpParams callocStack(org.lwjgl.system.MemoryStack stack)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
    • mallocStack

      @Deprecated public static CUstreamBatchMemOpParams.Buffer mallocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use malloc(int, MemoryStack) instead.
    • callocStack

      @Deprecated public static CUstreamBatchMemOpParams.Buffer callocStack(int capacity)
      Deprecated.
      Deprecated for removal in 3.4.0. Use calloc(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. Use malloc(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. Use calloc(int, MemoryStack) instead.
    • malloc

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

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

      public static CUstreamBatchMemOpParams.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new CUstreamBatchMemOpParams.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
    • noperation

      public static int noperation(long struct)
      Unsafe version of operation().
    • nwaitValue_operation

      public static int nwaitValue_operation(long struct)
      Unsafe version of waitValue_operation().
    • nwaitValue_address

      public static long nwaitValue_address(long struct)
      Unsafe version of waitValue_address().
    • nwaitValue_value

      public static int nwaitValue_value(long struct)
      Unsafe version of waitValue_value().
    • nwaitValue_value64

      public static long nwaitValue_value64(long struct)
      Unsafe version of waitValue_value64().
    • nwaitValue_flags

      public static int nwaitValue_flags(long struct)
      Unsafe version of waitValue_flags().
    • nwaitValue_alias

      public static long nwaitValue_alias(long struct)
      Unsafe version of waitValue_alias().
    • nwriteValue_operation

      public static int nwriteValue_operation(long struct)
      Unsafe version of writeValue_operation().
    • nwriteValue_address

      public static long nwriteValue_address(long struct)
      Unsafe version of writeValue_address().
    • nwriteValue_value

      public static int nwriteValue_value(long struct)
      Unsafe version of writeValue_value().
    • nwriteValue_value64

      public static long nwriteValue_value64(long struct)
      Unsafe version of writeValue_value64().
    • nwriteValue_flags

      public static int nwriteValue_flags(long struct)
      Unsafe version of writeValue_flags().
    • nwriteValue_alias

      public static long nwriteValue_alias(long struct)
      Unsafe version of writeValue_alias().
    • nflushRemoteWrites_operation

      public static int nflushRemoteWrites_operation(long struct)
    • nflushRemoteWrites_flags

      public static int nflushRemoteWrites_flags(long struct)
      Unsafe version of flushRemoteWrites_flags().
    • nmemoryBarrier_operation

      public static int nmemoryBarrier_operation(long struct)
      Unsafe version of memoryBarrier_operation().
    • nmemoryBarrier_flags

      public static int nmemoryBarrier_flags(long struct)
      Unsafe version of memoryBarrier_flags().
    • npad

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

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

      public static void noperation(long struct, int value)
      Unsafe version of operation.
    • nwaitValue_operation

      public static void nwaitValue_operation(long struct, int value)
      Unsafe version of waitValue_operation.
    • nwaitValue_address

      public static void nwaitValue_address(long struct, long value)
      Unsafe version of waitValue_address.
    • nwaitValue_value

      public static void nwaitValue_value(long struct, int value)
      Unsafe version of waitValue_value.
    • nwaitValue_value64

      public static void nwaitValue_value64(long struct, long value)
      Unsafe version of waitValue_value64.
    • nwaitValue_flags

      public static void nwaitValue_flags(long struct, int value)
      Unsafe version of waitValue_flags.
    • nwaitValue_alias

      public static void nwaitValue_alias(long struct, long value)
      Unsafe version of waitValue_alias.
    • nwriteValue_operation

      public static void nwriteValue_operation(long struct, int value)
      Unsafe version of writeValue_operation.
    • nwriteValue_address

      public static void nwriteValue_address(long struct, long value)
      Unsafe version of writeValue_address.
    • nwriteValue_value

      public static void nwriteValue_value(long struct, int value)
      Unsafe version of writeValue_value.
    • nwriteValue_value64

      public static void nwriteValue_value64(long struct, long value)
      Unsafe version of writeValue_value64.
    • nwriteValue_flags

      public static void nwriteValue_flags(long struct, int value)
      Unsafe version of writeValue_flags.
    • nwriteValue_alias

      public static void nwriteValue_alias(long struct, long value)
      Unsafe version of writeValue_alias.
    • nflushRemoteWrites_operation

      public static void nflushRemoteWrites_operation(long struct, int value)
      Unsafe version of flushRemoteWrites_operation.
    • nflushRemoteWrites_flags

      public static void nflushRemoteWrites_flags(long struct, int value)
      Unsafe version of flushRemoteWrites_flags.
    • nmemoryBarrier_operation

      public static void nmemoryBarrier_operation(long struct, int value)
      Unsafe version of memoryBarrier_operation.
    • nmemoryBarrier_flags

      public static void nmemoryBarrier_flags(long struct, int value)
      Unsafe version of memoryBarrier_flags.
    • npad

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

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