cuda.bindings.nvml.ProcessUtilizationSample#

class cuda.bindings.nvml.ProcessUtilizationSample(size=1)#

Empty-initialize an array of nvmlProcessUtilizationSample_t.

The resulting object is of length size and of dtype process_utilization_sample_dtype. If default-constructed, the instance represents a single struct.

Parameters:

size (int) – number of structs, default=1.

See also

nvmlProcessUtilizationSample_t

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

from_buffer(buffer)

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

from_data(data)

Create an ProcessUtilizationSample instance wrapping the given NumPy array.

from_ptr(intptr_t ptr, size_t size=1, ...)

Create an ProcessUtilizationSample instance wrapping the given pointer.

Attributes

dec_util

Union[~_numpy.uint32, int]:

enc_util

Union[~_numpy.uint32, int]:

mem_util

Union[~_numpy.uint32, int]:

pid

Union[~_numpy.uint32, int]:

ptr

Get the pointer address to the data as Python int.

sm_util

Union[~_numpy.uint32, int]:

time_stamp

Union[~_numpy.uint64, int]: