-
Mark Winter authored
MexIncludes/PyIncludes are now specifically include python/matlab headers ScriptIncludes.h is more general
Mark Winter authoredMexIncludes/PyIncludes are now specifically include python/matlab headers ScriptIncludes.h is more general
PyIncludes.h 366 B
#pragma once
#define PY_SSIZE_T_CLEAN
#include <Python.h>
// Make sure that Numpy symbols don't get re-imported in multiple compilation units
#ifndef NUMPY_IMPORT_MODULE
#define NO_IMPORT_ARRAY
#endif
#define PY_ARRAY_UNIQUE_SYMBOL HIP_ARRAY_API
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
#include <py3c.h>
#undef snprintf