TensorPlay
API symbolscuda
Copy
View MarkdownDownload .md

tensorplay.cuda.utilization

tensorplay.cuda.utilization(device: Any | None = None) int[source]

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.

Ask DeepWiki