cuda.bindings.nvml.device_get_samples#

cuda.bindings.nvml.device_get_samples(
intptr_t device,
int type,
unsigned long long last_seen_time_stamp,
) tuple#

Gets recent samples for the GPU.

Parameters:
  • device (intptr_t) – The identifier for the target device.

  • type (SamplingType) – Type of sampling event.

  • last_seen_time_stamp (unsigned long long) – Return only samples with timestamp greater than last_seen_time_stamp.

Returns:

  • int: Output parameter to represent the type of sample value as

    described in nvmlSampleVal_t.

  • nvmlSample_t: Reference in which samples are returned.

Return type:

A 2-tuple containing

See also

nvmlDeviceGetSamples