Class CUDA_HOST_NODE_PARAMS

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

    public class CUDA_HOST_NODE_PARAMS
    extends Struct
    implements NativeResource
    Host node parameters.

    Member documentation

    • fn – The function to call when the node executes
    • userData – Argument to pass to the function

    Layout

    
     struct CUDA_HOST_NODE_PARAMS {
         void (*fn) (void *userData);
         void * userData;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FN, USERDATA

        The struct member offsets.
    • Constructor Detail

      • CUDA_HOST_NODE_PARAMS

        public CUDA_HOST_NODE_PARAMS​(java.nio.ByteBuffer container)
        Creates a CUDA_HOST_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.