openpilot/tinygrad_repo/extra/setup_mock_nv_osx.sh
Vehicle Researcher c5d5c5d1f3 openpilot v0.10.1 release
date: 2025-10-24T00:30:59
master commit: 405631baf9685e171a0dd19547cb763f1b163d18
2025-10-24 00:31:03 -07:00

14 lines
515 B
Bash
Executable File

#!/bin/bash -e
cd /tmp
brew install cmake ninja llvm@15 zlib glew flex bison boost zstd ncurses
if [ ! -d "gpuocelot" ]; then
git clone --recurse-submodules https://github.com/gpuocelot/gpuocelot.git --depth 1
fi
cd gpuocelot/ocelot
git checkout b16039dc940dc6bc4ea0a98380495769ff35ed99
mkdir -p build
cd build
cmake .. -Wno-dev -G Ninja -DOCELOT_BUILD_TOOLS=OFF -DCMAKE_BUILD_ALWAYS=0 -DBUILD_TESTS_CUDA=OFF -DBISON_EXECUTABLE=/opt/homebrew/opt/bison/bin/bison
ninja
sudo cp libgpuocelot.dylib /usr/local/lib/