From da12c2ea16e7a980e8eca96b957ea60552854ad8 Mon Sep 17 00:00:00 2001 From: nimlgen <138685161+nimlgen@users.noreply.github.com> Date: Wed, 1 Apr 2026 20:09:37 +0300 Subject: [PATCH] better install msg (#15570) --- extra/setup_tinygpu_osx.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) mode change 100644 => 100755 extra/setup_tinygpu_osx.sh diff --git a/extra/setup_tinygpu_osx.sh b/extra/setup_tinygpu_osx.sh old mode 100644 new mode 100755 index a300cbe223..b9f356380f --- a/extra/setup_tinygpu_osx.sh +++ b/extra/setup_tinygpu_osx.sh @@ -1,2 +1,10 @@ #!/bin/sh -python3 -c "from tinygrad.runtime.support.system import APLRemotePCIDevice; APLRemotePCIDevice.ensure_app()" +python3 -c " +try: + from tinygrad.runtime.support.system import APLRemotePCIDevice + APLRemotePCIDevice.ensure_app() +except Exception as e: + print('Your tinygrad is too old. Please clone the latest tinygrad: git clone https://github.com/tinygrad/tinygrad.git && cd tinygrad && python3 -m pip install -e .') + print(e) + exit(1) +"