Last active
June 16, 2025 18:54
-
-
Save eddiebergman/1e11de0ddf2c78957109b9fec0cd540c to your computer and use it in GitHub Desktop.
Compiling `pytorch` for debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone [email protected]:pytorch/pytorch.git | |
| cd pytorch | |
| uv venv -p 3.13 | |
| source .venv/bin/activate | |
| uv pip install pyyaml setuptools pip | |
| brew install cmake ninja ccache # ccache was recommended on first compile | |
| python setup.py develop | |
| # wait like 10 minutes (M4 Pro, all CPUS burning) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And in
lldblldb -- python -c "import torch; print(torch.sort(torch.randint(-50, 50, (512,), device='mps', dtype=torch.int64)))"