cuda.bindings.nvml.device_get_encoder_sessions#
- cuda.bindings.nvml.device_get_encoder_sessions(intptr_t device)#
Retrieves information about active encoder sessions on a target device.
An array of active encoder sessions is returned in the caller-supplied buffer pointed at by
session_infos. 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 ofnvmlEncoderSessionInfo_tarray required insession_count. To query the number of active encoder sessions, call this function with *session_count = 0. The code will return NVML_SUCCESS with number of active encoder 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:
nvmlEncoderSessionInfo_t
See also
nvmlDeviceGetEncoderSessions