cuda.bindings.nvml.device_get_fbc_sessions#
- cuda.bindings.nvml.device_get_fbc_sessions(intptr_t device)#
Retrieves information about active frame buffer capture sessions on a target device.
An array of active FBC sessions is returned in the caller-supplied buffer pointed at by
session_info. The array element count is passed insession_count, andsession_countis used to return the number of sessions written to the buffer. If the supplied buffer is not large enough to accommodate the active session array, the function returns NVML_ERROR_INSUFFICIENT_SIZE, with the element count ofnvmlFBCSessionInfo_tarray required insession_count. To query the number of active FBC sessions, call this function with *session_count = 0. The code will return NVML_SUCCESS with number of active FBC sessions updated in *session_count. For Maxwell ™️ or newer fully supported devices.- Parameters:
device (intptr_t) – The identifier of the target device.
- Returns:
- Reference in which to return the session
information.
- Return type:
nvmlFBCSessionInfo_t
Note
hResolution, vResolution, averageFPS and averageLatency data for a FBC session returned in
session_infomay be zero if there are no new frames captured since the session started.See also
nvmlDeviceGetFBCSessions