mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-24 22:38:16 -05:00
hotfix: swap HIP/CUDA bringup order to prevent delay on tinybox
This commit is contained in:
@@ -30,7 +30,7 @@ class _Device:
|
||||
def DEFAULT(self) -> str:
|
||||
device_from_env: Optional[str] = functools.reduce(lambda val, ele: ele if getenv(ele) == 1 else val, self._devices, None) # type: ignore
|
||||
if device_from_env: return device_from_env
|
||||
for device in ["METAL", "CUDA", "HIP", "GPU"]:
|
||||
for device in ["METAL", "HIP", "CUDA", "GPU"]:
|
||||
try:
|
||||
if self[device]: return device
|
||||
except Exception: pass
|
||||
|
||||
Reference in New Issue
Block a user