cuda.bindings._v2.driver.device_get_nv_sci_sync_attributes#
- cuda.bindings._v2.driver.device_get_nv_sci_sync_attributes(
- intptr_t nv_sci_sync_attr_list,
- int dev,
- int flags,
Fill in NvSciSync attributes for the given CUDA device.
Returns in
nv_sci_sync_attr_listthe properties of NvSciSync thatdevcan support. The list can be used to create an NvSciSync object that matches this device’s capabilities.The
flagscontrols how the application intends to use the NvSciSync:CUDA_NVSCISYNC_ATTR_SIGNAL: the application intends to signal an NvSciSync on this device.CUDA_NVSCISYNC_ATTR_WAIT: the application intends to wait on an NvSciSync on this device.
At least one flag must be set. Both flags are orthogonal and may be combined. If
NvSciSyncAttrKey_RequiredPermis already set innv_sci_sync_attr_list, this API returnsCUDA_ERROR_INVALID_VALUE.- Parameters:
- Returns:
The same
nv_sci_sync_attr_listhandle after being populated.- Return type:
intptr_t
See also
cuDeviceGetNvSciSyncAttributes