mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
hipcomgr and tinygpu scripts (#15549)
This commit is contained in:
parent
83085f103c
commit
477d194630
2 changed files with 19 additions and 0 deletions
17
extra/setup_hipcomgr_osx.sh
Executable file
17
extra/setup_hipcomgr_osx.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
INSTALL_PATH="${1:-/opt/homebrew/lib}"
|
||||
if [ ! -d "$INSTALL_PATH" ]; then
|
||||
USER=$(whoami)
|
||||
echo "No path $INSTALL_PATH. Will create. Might need your password..."
|
||||
echo "You can stop now and provide any location as an argument where you want to save the libs (note, that not default locations should be in LD_LIBRARY_PATH, so tinygrad can find the libs)."
|
||||
echo "Press any key or symbol to continue..."
|
||||
read -n 1 -s
|
||||
|
||||
sudo mkdir -p "$INSTALL_PATH"
|
||||
sudo chown -R "$USER":staff "$INSTALL_PATH"
|
||||
fi
|
||||
|
||||
# Download libamd_comgr.dylib
|
||||
curl -s https://api.github.com/repos/tinygrad/amdcomgr_dylib/releases/latest | \
|
||||
jq -r '.assets[] | select(.name == "libamd_comgr.dylib").browser_download_url' | \
|
||||
xargs curl -L -o $INSTALL_PATH/libamd_comgr.dylib
|
||||
2
extra/setup_tinygpu_osx.sh
Normal file
2
extra/setup_tinygpu_osx.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
python3 -c "from tinygrad.runtime.support.system import APLRemotePCIDevice; APLRemotePCIDevice.ensure_app()"
|
||||
Loading…
Add table
Add a link
Reference in a new issue