7.18. cudaExternalSemaphoreHandleDesc 结构体参考
[CUDA运行时使用的数据类型]
外部信号量句柄描述符
公共变量
- int fd
- unsigned int flags
- void * 句柄
- const void * name
- const void * nvSciSyncObj
- enumcudaExternalSemaphoreHandleType 类型
- cudaExternalSemaphoreHandleDesc::@12::@13 win32
变量
- int cudaExternalSemaphoreHandleDesc::fd [inherited]
-
引用信号量对象的文件描述符。当类型为以下之一时有效:
- unsigned int cudaExternalSemaphoreHandleDesc::flags [inherited]
-
为未来保留的标志位。必须为零。
- void * cudaExternalSemaphoreHandleDesc::句柄 [inherited]
-
有效的NT句柄。如果'name'非空则必须为NULL
- const void * cudaExternalSemaphoreHandleDesc::name [inherited]
-
有效的同步原语名称。如果'handle'非空,则必须为NULL。
- const void * cudaExternalSemaphoreHandleDesc::nvSciSyncObj [inherited]
-
有效的NvSciSyncObj。必须为非NULL
- enumcudaExternalSemaphoreHandleTypecudaExternalSemaphoreHandleDesc::类型 [inherited]
-
句柄的类型
- cudaExternalSemaphoreHandleDesc::@12::@13 cudaExternalSemaphoreHandleDesc::win32 [inherited]
-
引用信号量对象的Win32句柄。当类型为以下之一时有效:
-
cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 'handle'和'name'中必须且只能有一个为非NULL值。如果类型为以下之一:cudaExternalSemaphoreHandleTypeOpaqueWin32KmtcudaExternalSemaphoreHandleTypeKeyedMutexKmt 则'name'必须为NULL。