2

我想使用 python 与我的 AMD Radeon RX 580 交互。我想要完成的基本内容:

  1. 获取功率级别(拉多少瓦)
  2. 设置风扇速度
  3. 从 GPU 本身检索一些信息,例如:内存大小、子供应商(Saphhire、XFX 等)、GPU 和内存时钟、内存类型等

我正在寻找某种方法来通过“Windows”上的 python 获取此信息。

我搜索了很多,但所有解决方案似乎都可以在 linux 上使用。

4

2 回答 2

2

您可以安装 pyadl 以查找一些有关 amd gpu 的信息。 https://github.com/nicolargo/pyadl

>>> from pyadl import *
>>> 
>>> device = ADLManager.getInstance().getDevices()
...
>>> device.getCurrentCoreVoltage()
...
>>> device.getCurrentEngineClock()
...
>>> device.getCurrentFanSpeed(speedType)
...
于 2020-03-17T07:25:06.820 回答
1

尝试:

import os
os.system("cmd \k wmic path Win32_VideoController")

它显示了一些信息。因此,您可以通过修改 CMD 命令的 get 参数来提取它们。

wmic path Win32_VideoController get name

命令支持以下获取参数:

AcceleratorCapabilities AdapterCompatibility AdapterDACType AdapterRAM Availability CapabilityDescriptions Caption ColorTableEntries ConfigManagerErrorCode ConfigManagerUserConfig CreationClassName CurrentBitsPerPixel CurrentHorizo​​ntalResolution CurrentNumberOfColors CurrentNumberOfColumns CurrentNumberOfRows CurrentRefreshRate CurrentScanMode CurrentVerticalResolution Description DeviceID DeviceSpecificPens DitherType DriverDate DriverVersion ErrorCleared ErrorDescription ICMIntent ICMMethod InfFilename InfSection InstallDate Display InstalledDisplayLastErrorCode MaxMemorySupported MaxNumberControlled MaxRefreshRate MinRefreshRate 单色名称 NumberOfColorPlanes NumberOfVideoPages PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProtocolSupported ReservedSystemPaletteEntries SpecificationVersion StatusInfo SystemCreationClassName SystemName SystemPaletteEntries TimeOfLastReset VideoArchitecture VideoMemoryType VideoMode VideoModeDescription VideoProcessorLastErrorCode MaxMemorySupported MaxNumberControlled MaxRefreshRate MinRefreshRate 单色名称 NumberOfColorPlanes NumberOfVideoPages PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProtocolSupported ReservedSystemPaletteEntries SpecificationVersion StatusInfo SystemCreationClassName SystemName SystemPaletteEntries TimeOfLastReset VideoArchitecture VideoMemoryType VideoMode VideoModeDescription VideoProcessorLastErrorCode MaxMemorySupported MaxNumberControlled MaxRefreshRate MinRefreshRate 单色名称 NumberOfColorPlanes NumberOfVideoPages PNPDeviceID PowerManagementCapabilities PowerManagementSupported ProtocolSupported ReservedSystemPaletteEntries SpecificationVersion StatusInfo SystemCreationClassName SystemName SystemPaletteEntries TimeOfLastReset VideoArchitecture VideoMemoryType VideoMode VideoModeDescription VideoProcessorProtocolSupported ReservedSystemPaletteEntries SpecificationVersion StatusInfo SystemCreationClassName SystemName SystemPaletteEntries TimeOfLastReset VideoArchitecture VideoMemoryType VideoMode VideoModeDescription VideoProcessorProtocolSupported ReservedSystemPaletteEntries SpecificationVersion StatusInfo SystemCreationClassName SystemName SystemPaletteEntries TimeOfLastReset VideoArchitecture VideoMemoryType VideoMode VideoModeDescription VideoProcessor

于 2020-03-17T07:15:56.370 回答