From 1bc4cb254c1b02888f4ef2e8e795827cd6213ec5 Mon Sep 17 00:00:00 2001 From: nimlgen <138685161+nimlgen@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:29:41 +0800 Subject: [PATCH] signed tinygpu as default (#15296) * signed tinygpu as default * f * no sip --- tinygrad/runtime/support/system.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tinygrad/runtime/support/system.py b/tinygrad/runtime/support/system.py index 473d13651e..616066beb7 100644 --- a/tinygrad/runtime/support/system.py +++ b/tinygrad/runtime/support/system.py @@ -349,8 +349,10 @@ class APLRemotePCIDevice(RemotePCIDevice): @classmethod def ensure_app(cls): - commit = "c4d5a845763e6694ef53ff1c0c8c6d3e130c3724" - if os.path.exists(cls.APP_PATH) and (_ensure_downloads_dir() / (app_name:=f"TinyGPU_{commit}.zip")).is_file(): return + sip_disabled = "disabled" in subprocess.run(["csrutil", "status"], capture_output=True, text=True).stdout.lower() + commit = "c4d5a845763e6694ef53ff1c0c8c6d3e130c3724" if sip_disabled else "81f5bb45ba0d65edefa833475b71cd17a470c2c5" + app_name = f"TinyGPU_{commit}.zip" + if (_ensure_downloads_dir() / app_name).is_file() and os.path.exists(cls.APP_PATH): return print("Downloading TinyGPU.app...") with contextlib.suppress(RuntimeError): system("pkill -f TinyGPU") system(f"ditto -xk {fetch(f'https://github.com/nimlgen/tinygpu_releases/raw/{commit}/TinyGPU.zip', name=app_name)} /Applications")