amd: uppercase amd_iface vals (#10175)

This commit is contained in:
nimlgen
2025-05-06 15:12:50 +03:00
committed by GitHub
parent 34d55857cf
commit aea1f77225

View File

@@ -846,7 +846,7 @@ class AMDDevice(HCQCompiled):
def is_usb(self) -> bool: return isinstance(self.dev_iface, USBIface)
def _select_iface(self):
if len(nm:=getenv("AMD_IFACE", "")) > 0: return getattr(sys.modules[__name__], f"{nm}Iface")(self, self.device_id)
if len(nm:=getenv("AMD_IFACE", "")) > 0: return getattr(sys.modules[__name__], f"{nm.upper()}Iface")(self, self.device_id)
errs:str = ""
for iface_t in (KFDIface, PCIIface, USBIface):