Aluode/PerceptionLabPortable
0
1#ifndef NUMBA_DEVICEARRAY_H_
2#define NUMBA_DEVICEARRAY_H_
3
4#ifdef __cplusplus
5 extern "C" {
6#endif
7
8/* These definitions should only be used by consumers of the Device Array API.
9 * Consumers access the API through the opaque pointer stored in
10 * _devicearray._DEVICEARRAY_API. We don't want these definitions in
11 * _devicearray.cpp itself because they would conflict with the actual
12 * implementations there.
13 */
14#ifndef NUMBA_IN_DEVICEARRAY_CPP_
15
16 extern void **DeviceArray_API;
17 #define DeviceArrayType (*(PyTypeObject*)DeviceArray_API[0])
18
19#endif /* ndef NUMBA_IN_DEVICEARRAY_CPP */
20
21#ifdef __cplusplus
22 }
23#endif
24
25#endif /* NUMBA_DEVICEARRAY_H_ */
26 