mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 15:38:29 -05:00
Revert "hotfix: HIP is the default device on HIP platforms"
This reverts commit b748b569f5.
This commit is contained in:
@@ -28,7 +28,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._buffers, None) # type: ignore
|
||||
if device_from_env: return device_from_env
|
||||
for device in ["METAL", "CUDA", "HIP", "GPU"]:
|
||||
for device in ["METAL", "CUDA", "GPU"]:
|
||||
try:
|
||||
if self[device]: return device
|
||||
except Exception: pass
|
||||
|
||||
Reference in New Issue
Block a user