We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8434c0a + 4aa8935 commit 4ca1f5fCopy full SHA for 4ca1f5f
library/sensors/sensors_python.py
@@ -216,12 +216,14 @@ def frequency() -> float:
216
@staticmethod
217
def is_available() -> bool:
218
global DETECTED_GPU
219
- if GpuAmd.is_available():
220
- logger.info("Detected AMD GPU(s)")
221
- DETECTED_GPU = GpuType.AMD
222
- elif GpuNvidia.is_available():
+ # Always use Nvidia GPU if available
+ if GpuNvidia.is_available():
223
logger.info("Detected Nvidia GPU(s)")
224
DETECTED_GPU = GpuType.NVIDIA
+ # Otherwise, use the AMD GPU / APU if available
+ elif GpuAmd.is_available():
225
+ logger.info("Detected AMD GPU(s)")
226
+ DETECTED_GPU = GpuType.AMD
227
else:
228
logger.warning("No supported GPU found")
229
DETECTED_GPU = GpuType.UNSUPPORTED
0 commit comments