Class CUDA_KERNEL_NODE_PARAMS

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FUNC, GRIDDIMX, GRIDDIMY, GRIDDIMZ, BLOCKDIMX, BLOCKDIMY, BLOCKDIMZ, SHAREDMEMBYTES, KERNELPARAMS, EXTRA

        The struct member offsets.
    • Constructor Detail

      • CUDA_KERNEL_NODE_PARAMS

        public CUDA_KERNEL_NODE_PARAMS​(java.nio.ByteBuffer container)
        Creates a CUDA_KERNEL_NODE_PARAMS 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()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • func

        public long func()
        Kernel to launch
      • gridDimX

        public int gridDimX()
        Width of grid in blocks
      • gridDimY

        public int gridDimY()
        Height of grid in blocks
      • gridDimZ

        public int gridDimZ()
        Depth of grid in blocks
      • blockDimX

        public int blockDimX()
        X dimension of each thread block
      • blockDimY

        public int blockDimY()
        Y dimension of each thread block
      • blockDimZ

        public int blockDimZ()
        Z dimension of each thread block
      • sharedMemBytes

        public int sharedMemBytes()
        Dynamic shared-memory size per thread block in bytes
      • kernelParams

        @Nullable
        public org.lwjgl.PointerBuffer kernelParams​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        Array of pointers to kernel parameters
      • extra

        @Nullable
        public org.lwjgl.PointerBuffer extra​(int capacity)
        Parameters:
        capacity - the number of elements in the returned buffer
        Returns:
        Extra options
      • set

        public CUDA_KERNEL_NODE_PARAMS 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)
        Initializes this struct with the specified values.
      • malloc

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

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

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

        public static CUDA_KERNEL_NODE_PARAMS create​(long address)
        Returns a new CUDA_KERNEL_NODE_PARAMS instance for the specified memory address.
      • malloc

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

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

        public static CUDA_KERNEL_NODE_PARAMS.Buffer calloc​(int capacity,
                                                            org.lwjgl.system.MemoryStack stack)
        Returns a new CUDA_KERNEL_NODE_PARAMS.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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

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

        @Nullable
        public static org.lwjgl.PointerBuffer nextra​(long struct,
                                                     int capacity)
        Unsafe version of extra.
      • 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.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate