- numpy array -> GPU buffer -> compute -> copy result into numpy array
- macOS
- Xcode (or CommandLineTools)
- Metal Framework
- Python 3.x
(python)
- brew install pyenv
- pyenv install 3.7.1
(venv)
- git clone https://github.com/wtnb75/runmetal.git
- cd runmetal
- python -m venv .
- ./bin/pip install -r requirements.txt
- ./bin/python setup.py install
(released version)
- pip install runmetal
Usage: runmetal [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
compile
lsdev
mtlinfo
run
- compile
- precompile source in YAML to .metallib
- ... may not work (depends on your environment)
- lsdev
- list GPU device
- mtlinfo
- show GPU info like mtlinfo
- run
- run recipe