From 01de17eeb89ab6114577e034df340d10221e02b4 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Mon, 8 Aug 2022 13:17:36 +0200 Subject: [PATCH] amfi note --- README.md | 2 ++ accel/ane/3_run/build.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 045f6909c5..a1ac79c641 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,8 @@ If all you want to do is ReLU, you are in luck! You can do very fast ReLU (at le Requires your Python to be signed with `ane/lib/sign_python.sh` to add the `com.apple.ane.iokit-user-access` entitlement, which also requires `amfi_get_out_of_my_way=0x1` in your `boot-args`. Build the library with `ane/lib/build.sh` +In order to set arg and for the AMFI kext to respect that arg, csrutil must have `csrutil enable --without-kext --without-nvram` in recovery mode. + ```python from tinygrad.tensor import Tensor diff --git a/accel/ane/3_run/build.sh b/accel/ane/3_run/build.sh index 824d7da0ee..f84274853c 100755 --- a/accel/ane/3_run/build.sh +++ b/accel/ane/3_run/build.sh @@ -1,4 +1,4 @@ #!/bin/bash clang++ test.mm -F /System/Library/PrivateFrameworks/ -framework ANEServices -framework IOSurface -framework Foundation -framework IOKit -codesign --entitlements entitlements.xml -s "Taylor Swift Child" a.out +codesign --entitlements entitlements.xml -s "Taylor Swift Child 2" a.out