cuda.bindings.nvml.AccountingStats_v2#

class cuda.bindings.nvml.AccountingStats_v2#

Empty-initialize an instance of nvmlAccountingStats_v2_t.

See also

nvmlAccountingStats_v2_t

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

Create an AccountingStats_v2 instance with the memory from the given buffer.

from_data(data)

Create an AccountingStats_v2 instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, bool readonly=False)

Create an AccountingStats_v2 instance wrapping the given pointer.

Attributes

gpu_utilization

Percent of time over the process's lifetime during which one or more kernels was executing on the GPU.

is_running

Flag to represent if the process is running (1 for running, 0 for terminated).

max_memory_usage

Maximum total memory in bytes that was ever allocated by the process.

memory_utilization

Percent of time over the process's lifetime during which global (device) memory was being read or written.

pid

Process Id of the target process to query stats for.

ptr

Get the pointer address to the data as Python int.

sample_count

The sample counts since the process starts.

start_time

CPU Timestamp in usec representing start time for the process.

sum_fb_util

The sum of process's FB bandwidth utilization in unit of pct * 100.

sum_gpu_util

The sum of process's GR engine utilization in unit of pct * 100.

time

Amount of time in ms during which the compute context was active.