Class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC

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

    public class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC
    extends Struct
    implements NativeResource
    External semaphore handle descriptor.

    Member documentation

    • type – type of the handle
    • handle
      • handle.fd – File descriptor referencing the semaphore object. Valid when type is ::CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD
      • handle.win32 – Win32 handle referencing the semaphore object. Valid when type is one of the following: - ::CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 - ::CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT - ::CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_D3D12_FENCE Exactly one of 'handle' and 'name' must be non-NULL. If type is ::CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT then 'name' must be NULL.
        • handle.win32.handle – Valid NT handle. Must be NULL if 'name' is non-NULL
        • handle.win32.name – Name of a valid synchronization primitive. Must be NULL if 'handle' is non-NULL.
    • flags – Flags reserved for the future. Must be zero.

    Layout

    
     struct CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC {
         CUexternalSemaphoreHandleType type;
         union {
             int fd;
             struct {
                 void * handle;
                 void const * name;
             } win32;
         } handle;
         unsigned int flags;
         unsigned int reserved[16];
     }