Class CUDA_GRAPH_INSTANTIATE_PARAMS

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

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

Layout


 struct CUDA_GRAPH_INSTANTIATE_PARAMS {
     cuuint64_t flags;
     CUstream hUploadStream;
     CUgraphNode hErrNode_out;
     CUgraphInstantiateResult result_out;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int FLAGS
      The struct member offsets.
    • HUPLOADSTREAM

      public static final int HUPLOADSTREAM
      The struct member offsets.
    • HERRNODE_OUT

      public static final int HERRNODE_OUT
      The struct member offsets.
    • RESULT_OUT

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

    • CUDA_GRAPH_INSTANTIATE_PARAMS

      public CUDA_GRAPH_INSTANTIATE_PARAMS(ByteBuffer container)
      Creates a CUDA_GRAPH_INSTANTIATE_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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<CUDA_GRAPH_INSTANTIATE_PARAMS>
    • flags

      public long flags()
      Returns:
      the value of the flags field.
    • hUploadStream

      public long hUploadStream()
      Returns:
      the value of the hUploadStream field.
    • hErrNode_out

      public long hErrNode_out()
      Returns:
      the value of the hErrNode_out field.
    • result_out

      public int result_out()
      Returns:
      the value of the result_out field.
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nflags(long struct)
      Unsafe version of flags().
    • nhUploadStream

      public static long nhUploadStream(long struct)
      Unsafe version of hUploadStream().
    • nhErrNode_out

      public static long nhErrNode_out(long struct)
      Unsafe version of hErrNode_out().
    • nresult_out

      public static int nresult_out(long struct)
      Unsafe version of result_out().