cuda.bindings.nvml.system_get_cper_v1#

cuda.bindings.nvml.system_get_cper_v1()#

Retrieves Common Platform Error Record (CPER) data.

Records are returned in a caller-supplied buffer. Iteration is driven by the cursor (nvmlCPERCursor_v1_t) struct: pass the same cursor on every call in a sequence; the implementation updates cursor.handle. Do not modify cursor between calls. To change cursor.cperTypeMask or cursor.uuid, set cursor.handle to NVML_CPER_CURSOR_HANDLE_INIT and call again (new iteration). For a size query, call with buffer NULL and bufferSize 0; the function returns NVML_ERROR_INSUFFICIENT_SIZE and sets bufferSize when records exist, or NVML_SUCCESS with bufferSize set to 0 when there are no CPER records. Use bufferSize == 0 on return as the indicator for “no records” or “no more records”. This API requires root privileges. Records are available from initialization.

Returns:

Pointer to an nvmlGetCPER_v1_t. On entry set

cursor.cperTypeMask, cursor.uuid (empty string for all), cursor.handle (to NVML_CPER_CURSOR_HANDLE_INIT for first call), buffer (or NULL), bufferSize. On return cursor.handle and bufferSize are updated.

Return type:

nvmlGetCPER_v1_t

See also

nvmlSystemGetCPER_v1