amfi note

This commit is contained in:
George Hotz 2022-08-08 13:17:36 +02:00
parent 136706169d
commit 01de17eeb8
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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