# tensorplay.cuda.utilization

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.utilization.html

# tensorplay.cuda.utilization

tensorplay.cuda.utilization(device: [Any](https://docs.python.org/3/library/typing.html#typing.Any) | [None](https://docs.python.org/3/library/constants.html#None) = None) &#x2192; [int](https://docs.python.org/3/library/functions.html#int)[[source]](../_modules/tensorplay/cuda.html#utilization)

Return the percent of time over the past sample period during which one or
more kernels was executing on the GPU as given by nvidia-smi.

Warning: Each sample period may be between 1 second and 1/6 second,
depending on the product being queried.
