python - 如何查找AMD显卡数据

标签 python gpu

我正在寻找 AMD 显卡核心的利用率。 我还需要编写一个函数来输出显卡的名称,即 AMD Radeon R9 380。

我见过 GPUtil 等选项非常适合 NVIDIA 卡。 这是我为 NVIDIA 端编写的函数,以了解一下。

    def N_gpu_util_timer(self):
    for n in range(10):
        GPUs = GPUtil.getGPUs()
        gpu_load = GPUs[0].load
        Graph_Util.gpu_y.append(gpu_load)
        Graph_Util.time_x.append(n)
        time.sleep(1)
    print(Graph_Util.gpu_y)
    print('gpu done')

最佳答案

尝试PyADL 。使用此 PyADL 库,您可以从中获取 ADLManager.getInstance().getDevices()device.getCurrentUsage()

正如我在评论中提到的,GPUtils 不适用于 AMD 显卡。它是为 NVIDIA 显卡编写的。

关于python - 如何查找AMD显卡数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54005805/

相关文章:

python - 为什么在 Python 中返回 'NoneType'?

javascript - 如何找出访问者的 RAM 和 GPU 信息?

python - pip 安装报告实验室错误 : command 'x86_64-linux-gnu-gcc' failed with exit status 1

python - Django通过关系计算外键

python - 成员资格测试中的 numpy dtype 给出了奇怪的结果

javascript - 何时将 Three.js 纹理发送到 GPU?

Python 3 通过发送 Ctrl C 停止子进程

c - 应用框模糊时计算一帧(在 CPU 和 GPU 上并行处理)需要多长时间?

performance - GLSL:为什么本地数组中的随机写入比循环写入慢得多?

python - 尝试从 JSON 列表打印元素时出现关键错误