Metadata-Version: 2.1
Name: runmetal
Version: 0.1
Summary: run Apple Metal framework
Home-page: https://github.com/wtnb75/runmetal
Author: Takashi WATANABE
Author-email: wtnb75@gmail.com
License: MIT
Description: # runmetal: call Apple Metal Framework from Python (or YAML-recipe)
        
        - numpy array -> GPU buffer -> compute -> copy result into numpy array
        
        ## requirements
        
        - macOS
        - Xcode (or CommandLineTools)
            - Metal Framework
        - Python 3.x
        
        ## install
        
        (python)
        - brew install pyenv
        - pyenv install 3.7.1
        
        (venv)
        - python -m venv .
        - ./bin/pip install -r requirements.txt
        - ./bin/python setup.py install
        - ./bin/runmetal run example/xxx.yaml
        
        ## examples(YAML)
        
        - [pi](example/pi.yaml)
            - calculate π by monte carlo
                - numpy.random.random()
                - -> copy numpy to GPU buffer
                - -> compute sqrt(x*x+y*y) < 1.0
                - -> copy GPU buffer to numpy bool8 array
                - numpy.sum(result == True)/len(result)*4
            - runmetal run example/pi.yaml
        - [rand](example/rand.yaml)
            - random number generator (LCG)
        
        ## examples(python)
        
        TBD
        
Keywords: apple metal gpu
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3
Description-Content-Type: text/markdown
