- pytorch
- py.test
- halide
Set the HALIDE_DIR
env var to your Halide root directory. Then run:
cd gapps
make
See 'dummy' for an example. This is done in 5 steps:
-
Write a Halide generator e.g.
src/dummy.hl.cxx
. -
Declare a CFFI entry point in
src/operators.h
. -
Write the PyTorch C interface in
src/operator.cxx
. -
Register your new operator with Autograd in functions/operators.py.
-
Add an entry in the Makefile (under OPS)
Run with stdout prints:
cd gapps py.test --capture=no test
python3 -m visdom.server