diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-17 03:22:53 +0000 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-17 03:22:53 +0000 |
commit | 75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5 (patch) | |
tree | 498ac06b4cf78568b807fafd2619856afff69c28 /chill/include/chillmodule.hh | |
parent | 29efa7b1a0d089e02a70f73f348f11878955287c (diff) | |
download | chill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.tar.gz chill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.tar.bz2 chill-75ff98e4d65862ff5b36b533b4f6e3ea71ede1d5.zip |
cmake build
Diffstat (limited to 'chill/include/chillmodule.hh')
-rw-r--r-- | chill/include/chillmodule.hh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chill/include/chillmodule.hh b/chill/include/chillmodule.hh new file mode 100644 index 0000000..a64ad1b --- /dev/null +++ b/chill/include/chillmodule.hh @@ -0,0 +1,21 @@ +#ifndef BASIC_CHILLMODULE_HH +#define BASIC_CHILLMODULE_HH +// TODO Python.h defines these and something else does too +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE + +#include <Python.h> + +// a C routine that will be called from python +//static PyObject * chill_print_code(PyObject *self, PyObject *args); + +//static PyMethodDef ChillMethods[] ; + +#ifndef CUDACHILL +void finalize_loop(int loop_num_start, int loop_num_end); +int get_loop_num_start(); +int get_loop_num_end(); +#endif + +PyMODINIT_FUNC initchill() ; // pass C methods to python +#endif |