PyADL
A simple Python Wrapper for the AMD/ATI ADL lib.
Library usage
First, import:
from pyadl import *
To get the supported devices list
Return: Array of ADLDevice
ADLManager.getInstance().getDevices()
For the following methods, device is an instance of ADLDevice.
Get the current core voltage in mV
Return: Float
device.getCurrentCoreVoltage()
Get the current engine frequency in MHz
Return: Float
device.getCurrentEngineClock()
Get the current fan speed in a specified unit
Parameters:
speedType: ADL_DEVICE_FAN_SPEED_TYPE_PERCENTAGE or ADL_DEVICE_FAN_SPEED_TYPE_RPM
Return: Integer
device.getCurrentFanSpeed(speedType):
Get the current memory frequency in MHz
Return: Float
device.getCurrentMemoryClock()
Get the current temperature in Celsius
Return: Float
device.getCurrentTemperature()
Get the current load in percentage
Return: Integer
device.getCurrentUsage():
Get the core voltage range
Parameters:
reload: Force reload the cached data. Default: False
Return: (Min: Float, Max: Float)
device.getCoreVoltageRange(reload):
Get the engine clock frequency range
Parameters:
reload: Force reload the cached data. Default: False
Return: (Min: Float, Max: Float)
device.getEngineClockRange(reload):
Get the fan speed range in the specified unit
Parameters:
speedType: ADL_DEVICE_FAN_SPEED_TYPE_PERCENTAGE or ADL_DEVICE_FAN_SPEED_TYPE_RPM
reload: Force reload the cached data. Default: False
Return: (Min: Integer, Max: Integer)
device.getFanSpeedRange(speedType, reload):
Get the memory clock frequency range (Min, Max)
Parameters:
reload: Force reload the cached data. Default: False
Return: (Min: Float, Max: Float)
device.getMemoryClockRange(reload):
For testing
$ python test.py
Options:
-h, --help show this help message and exit
-l, --list-adapters Lists all detected and supported display adapters.
-s, --status Shows current clock speeds, core voltage, utilization
and performance level.
On a single card machine:
$ python test.py -s
0. AMD Radeon (TM) R9 380 Series
Engine core voltage: -2076327552 mV (0.0 mV - 0.0 mV)
Engine clock: 975.54 MHz (150.0 MHz - 1200.0 MHz)
Memory clock: 1400.0 MHz (75.0 MHz - 1750.0 MHz)
Fan speed: 65 % (0 % - 100 %)
Fan speed: 2958 RPM (0 RPM - 6000 RPM)
Temperature: 77.0 Celsius
Usage: 100 %
On a miner rig with 5 RX 460:
python test.py -s
0. b'Radeon(TM) RX 460 Graphics'
Engine core voltage: 1230037376 mV (0.0 mV - 0.0 mV)
Engine clock: 1168.0 MHz (110.0 MHz - 1800.0 MHz)
Memory clock: 1750.0 MHz (150.0 MHz - 2000.0 MHz)
Fan speed: 35 % (0 % - 100 %)
Fan speed: 1042 RPM (0 RPM - 4600 RPM)
Temperature: 69.0 Celsius
Usage: 100 %
16. b'Radeon(TM) RX 460 Graphics'
Engine core voltage: 757416320 mV (0.0 mV - 0.0 mV)
Engine clock: 1142.11 MHz (110.0 MHz - 1800.0 MHz)
Memory clock: 1750.0 MHz (150.0 MHz - 2000.0 MHz)
Fan speed: 34 % (0 % - 100 %)
Fan speed: 984 RPM (0 RPM - 4600 RPM)
Temperature: 69.0 Celsius
Usage: 100 %
32. b'Radeon(TM) RX 460 Graphics'
Engine core voltage: 1230037376 mV (0.0 mV - 0.0 mV)
Engine clock: 1153.96 MHz (110.0 MHz - 1800.0 MHz)
Memory clock: 1750.0 MHz (150.0 MHz - 2000.0 MHz)
Fan speed: 33 % (0 % - 100 %)
Fan speed: 989 RPM (0 RPM - 4600 RPM)
Temperature: 70.0 Celsius
Usage: 100 %
48. b'Radeon(TM) RX 460 Graphics'
Engine core voltage: 1230037376 mV (0.0 mV - 0.0 mV)
Engine clock: 1098.78 MHz (110.0 MHz - 1800.0 MHz)
Memory clock: 1750.0 MHz (150.0 MHz - 2000.0 MHz)
Fan speed: 33 % (0 % - 100 %)
Fan speed: 851 RPM (0 RPM - 4600 RPM)
Temperature: 72.0 Celsius
Usage: 100 %
64. b'Radeon(TM) RX 460 Graphics'
Engine core voltage: 1230037376 mV (0.0 mV - 0.0 mV)
Engine clock: 1162.41 MHz (110.0 MHz - 1800.0 MHz)
Memory clock: 1750.0 MHz (150.0 MHz - 2000.0 MHz)
Fan speed: 33 % (0 % - 100 %)
Fan speed: 858 RPM (0 RPM - 4600 RPM)
Temperature: 67.0 Celsius
Usage: 100 %
Metadata
Release files for pyadl 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyadl-0.1.tar.gz | 24.6 kB | Without provenance | Details for pyadl-0.1.tar.gz |
Release files / pyadl-0.1.tar.gz
| Download URL | pyadl-0.1.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c76c809cfdcb1c40eb2af1dfb3fbb5c265d0431fa3c1645cb65709e353f9d87
|
|
BLAKE2b-256 checksum How to use checksums |
d46b2f0181e334dd97949f7112467d4b16d346aa759dcf3da793c8eb58f0ce0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyadl 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.