in src/hardware/hardware_detector.py [0:0]
def detect_amd_gpu(self) -> bool:
if platform.system() == "Linux":
lspci_output = self._run_cmd(['lspci'])
return ('AMD' in lspci_output or 'Radeon' in lspci_output) and ('VGA' in lspci_output or 'Display' in lspci_output)
elif platform.system() == "Darwin":
system_profiler = self._run_cmd(['system_profiler', 'SPDisplaysDataType'])
return 'AMD' in system_profiler or 'Radeon' in system_profiler
return False