GPU利用率

时间:2013-05-17 20:57:30

标签: cuda gpu nvml

我一直在使用NVML库来获取图形和内存利用率的值 Rodinia基准套件。我观察到,对于不同的频率,相同应用程序的使用显示不同的值。从维基链接http://en.wikipedia.org/wiki/CPU_usage看来,它没有考虑到各种档位,如内存,分支等。在一段时间间隔内,这种利用率究竟是什么?它的价值如何随着频率的变化而变化。

由于

1 个答案:

答案 0 :(得分:2)

利用率的定义见nvml documentation,p90:

8.12 nvmlUtilization_t Struct Reference
#include <nvml.h>
Data Fields
• unsigned int gpu
Percent of time over the past second during which one or more kernels was executing on the GPU.
• unsigned int memory
Percent of time over the past second during which global (device) memory was being read or written.

如果更改应用程序时钟,给定工作负载的利用率可能会有所不同(我假设这是frequency的意思)。

例如,如果GPU核心时钟运行得更快,则可能会更改工作负载的处理,并且可能需要更少的时间来完成工作负载。