Class CUDA_KERNEL_NODE_PARAMS_v3

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

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

Layout


 struct CUDA_KERNEL_NODE_PARAMS_v3 {
     CUfunction func;
     unsigned int gridDimX;
     unsigned int gridDimY;
     unsigned int gridDimZ;
     unsigned int blockDimX;
     unsigned int blockDimY;
     unsigned int blockDimZ;
     unsigned int sharedMemBytes;
     void ** kernelParams;
     void ** extra;
     CUkernel kern;
     CUcontext ctx;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FUNC
      The struct member offsets.
    • GRIDDIMX

      public static final int GRIDDIMX
      The struct member offsets.
    • GRIDDIMY

      public static final int GRIDDIMY
      The struct member offsets.
    • GRIDDIMZ

      public static final int GRIDDIMZ
      The struct member offsets.
    • BLOCKDIMX

      public static final int BLOCKDIMX
      The struct member offsets.
    • BLOCKDIMY

      public static final int BLOCKDIMY
      The struct member offsets.
    • BLOCKDIMZ

      public static final int BLOCKDIMZ
      The struct member offsets.
    • SHAREDMEMBYTES

      public static final int SHAREDMEMBYTES
      The struct member offsets.
    • KERNELPARAMS

      public static final int KERNELPARAMS
      The struct member offsets.
    • EXTRA

      public static final int EXTRA
      The struct member offsets.
    • KERN

      public static final int KERN
      The struct member offsets.
    • CTX

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

    • CUDA_KERNEL_NODE_PARAMS_v3

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

      public long func()
      Returns:
      the value of the func field.
    • gridDimX

      public int gridDimX()
      Returns:
      the value of the gridDimX field.
    • gridDimY

      public int gridDimY()
      Returns:
      the value of the gridDimY field.
    • gridDimZ

      public int gridDimZ()
      Returns:
      the value of the gridDimZ field.
    • blockDimX

      public int blockDimX()
      Returns:
      the value of the blockDimX field.
    • blockDimY

      public int blockDimY()
      Returns:
      the value of the blockDimY field.
    • blockDimZ

      public int blockDimZ()
      Returns:
      the value of the blockDimZ field.
    • sharedMemBytes

      public int sharedMemBytes()
      Returns:
      the value of the sharedMemBytes field.
    • kernelParams

      public @Nullable org.lwjgl.PointerBuffer kernelParams(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a PointerBuffer view of the data pointed to by the kernelParams field.
    • extra

      public @Nullable org.lwjgl.PointerBuffer extra(int capacity)
      Parameters:
      capacity - the number of elements in the returned buffer
      Returns:
      a PointerBuffer view of the data pointed to by the extra field.
    • kern

      public long kern()
      Returns:
      the value of the kern field.
    • ctx

      public long ctx()
      Returns:
      the value of the ctx field.
    • func

      public CUDA_KERNEL_NODE_PARAMS_v3 func(long value)
      Sets the specified value to the func field.
    • gridDimX

      public CUDA_KERNEL_NODE_PARAMS_v3 gridDimX(int value)
      Sets the specified value to the gridDimX field.
    • gridDimY

      public CUDA_KERNEL_NODE_PARAMS_v3 gridDimY(int value)
      Sets the specified value to the gridDimY field.
    • gridDimZ

      public CUDA_KERNEL_NODE_PARAMS_v3 gridDimZ(int value)
      Sets the specified value to the gridDimZ field.
    • blockDimX

      public CUDA_KERNEL_NODE_PARAMS_v3 blockDimX(int value)
      Sets the specified value to the blockDimX field.
    • blockDimY

      public CUDA_KERNEL_NODE_PARAMS_v3 blockDimY(int value)
      Sets the specified value to the blockDimY field.
    • blockDimZ

      public CUDA_KERNEL_NODE_PARAMS_v3 blockDimZ(int value)
      Sets the specified value to the blockDimZ field.
    • sharedMemBytes

      public CUDA_KERNEL_NODE_PARAMS_v3 sharedMemBytes(int value)
      Sets the specified value to the sharedMemBytes field.
    • kernelParams

      public CUDA_KERNEL_NODE_PARAMS_v3 kernelParams(@Nullable org.lwjgl.PointerBuffer value)
      Sets the address of the specified PointerBuffer to the kernelParams field.
    • extra

      public CUDA_KERNEL_NODE_PARAMS_v3 extra(@Nullable org.lwjgl.PointerBuffer value)
      Sets the address of the specified PointerBuffer to the extra field.
    • kern

      public CUDA_KERNEL_NODE_PARAMS_v3 kern(long value)
      Sets the specified value to the kern field.
    • ctx

      public CUDA_KERNEL_NODE_PARAMS_v3 ctx(long value)
      Sets the specified value to the ctx field.
    • set

      public CUDA_KERNEL_NODE_PARAMS_v3 set(long func, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, @Nullable org.lwjgl.PointerBuffer kernelParams, @Nullable org.lwjgl.PointerBuffer extra, long kern, long ctx)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

      public static CUDA_KERNEL_NODE_PARAMS_v3 calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new CUDA_KERNEL_NODE_PARAMS_v3 instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

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

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

      public static long nfunc(long struct)
      Unsafe version of func().
    • ngridDimX

      public static int ngridDimX(long struct)
      Unsafe version of gridDimX().
    • ngridDimY

      public static int ngridDimY(long struct)
      Unsafe version of gridDimY().
    • ngridDimZ

      public static int ngridDimZ(long struct)
      Unsafe version of gridDimZ().
    • nblockDimX

      public static int nblockDimX(long struct)
      Unsafe version of blockDimX().
    • nblockDimY

      public static int nblockDimY(long struct)
      Unsafe version of blockDimY().
    • nblockDimZ

      public static int nblockDimZ(long struct)
      Unsafe version of blockDimZ().
    • nsharedMemBytes

      public static int nsharedMemBytes(long struct)
      Unsafe version of sharedMemBytes().
    • nkernelParams

      public static @Nullable org.lwjgl.PointerBuffer nkernelParams(long struct, int capacity)
      Unsafe version of kernelParams.
    • nextra

      public static @Nullable org.lwjgl.PointerBuffer nextra(long struct, int capacity)
      Unsafe version of extra.
    • nkern

      public static long nkern(long struct)
      Unsafe version of kern().
    • nctx

      public static long nctx(long struct)
      Unsafe version of ctx().
    • nfunc

      public static void nfunc(long struct, long value)
      Unsafe version of func.
    • ngridDimX

      public static void ngridDimX(long struct, int value)
      Unsafe version of gridDimX.
    • ngridDimY

      public static void ngridDimY(long struct, int value)
      Unsafe version of gridDimY.
    • ngridDimZ

      public static void ngridDimZ(long struct, int value)
      Unsafe version of gridDimZ.
    • nblockDimX

      public static void nblockDimX(long struct, int value)
      Unsafe version of blockDimX.
    • nblockDimY

      public static void nblockDimY(long struct, int value)
      Unsafe version of blockDimY.
    • nblockDimZ

      public static void nblockDimZ(long struct, int value)
      Unsafe version of blockDimZ.
    • nsharedMemBytes

      public static void nsharedMemBytes(long struct, int value)
      Unsafe version of sharedMemBytes.
    • nkernelParams

      public static void nkernelParams(long struct, @Nullable org.lwjgl.PointerBuffer value)
      Unsafe version of kernelParams.
    • nextra

      public static void nextra(long struct, @Nullable org.lwjgl.PointerBuffer value)
      Unsafe version of extra.
    • nkern

      public static void nkern(long struct, long value)
      Unsafe version of kern.
    • nctx

      public static void nctx(long struct, long value)
      Unsafe version of ctx.