mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-24 22:38:16 -05:00
amd: uppercase amd_iface vals (#10175)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user