mirror of https://github.com/commaai/tinygrad.git
hotfix: swap HIP/CUDA bringup order to prevent delay on tinybox
This commit is contained in:
parent
28ba1c5406
commit
dc82ef6660
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue