Class CUstreamBatchMemOpParams

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class CUstreamBatchMemOpParams
    extends Struct
    implements NativeResource
    Per-operation parameters for ::cuStreamBatchMemOp.

    Member documentation

    • waitValue
      • waitValue.alias – For driver internal use. Initial value is unimportant.
    • writeValue
      • writeValue.alias – For driver internal use. Initial value is unimportant.

    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;
         cuuint64_t pad[6];
     }
    • 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 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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • pad

        public java.nio.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.
      • waitValue_operation

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

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

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

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

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

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

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

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

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

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

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

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

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

        public CUstreamBatchMemOpParams flushRemoteWrites_flags​(int value)
        Sets the specified value to the flushRemoteWrites.flags field.
      • pad

        public CUstreamBatchMemOpParams pad​(java.nio.LongBuffer value)
        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.
      • 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​(long address)
        Returns a new CUstreamBatchMemOpParams instance for the specified memory address.
      • callocStack

        public static CUstreamBatchMemOpParams callocStack()
        Returns a new CUstreamBatchMemOpParams instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static CUstreamBatchMemOpParams mallocStack​(MemoryStack stack)
        Returns a new CUstreamBatchMemOpParams instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CUstreamBatchMemOpParams callocStack​(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
      • 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().
      • npad

        public static java.nio.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.
      • npad

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

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