gpt4 book ai didi

cuda - GPU 利用率

转载 作者:行者123 更新时间:2023-12-04 04:57:04 32 4
gpt4 key购买 nike

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

谢谢

最佳答案

利用率的定义在 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 内核时钟运行得更快,那么工作负载的处理可能会发生变化,完成工作负载所需的时间可能会更少。

关于cuda - GPU 利用率,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16617796/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com