This commit is contained in:
2026-04-10 15:06:59 +02:00
parent 3031b7153b
commit e5a4711004
7806 changed files with 1918528 additions and 335 deletions

View File

@@ -0,0 +1,25 @@
#ifndef NUMBA_DEVICEARRAY_H_
#define NUMBA_DEVICEARRAY_H_
#ifdef __cplusplus
extern "C" {
#endif
/* These definitions should only be used by consumers of the Device Array API.
* Consumers access the API through the opaque pointer stored in
* _devicearray._DEVICEARRAY_API. We don't want these definitions in
* _devicearray.cpp itself because they would conflict with the actual
* implementations there.
*/
#ifndef NUMBA_IN_DEVICEARRAY_CPP_
extern void **DeviceArray_API;
#define DeviceArrayType (*(PyTypeObject*)DeviceArray_API[0])
#endif /* ndef NUMBA_IN_DEVICEARRAY_CPP */
#ifdef __cplusplus
}
#endif
#endif /* NUMBA_DEVICEARRAY_H_ */