Files
ytts/venv/lib/python3.11/site-packages/numba/_devicearray.h
2025-04-02 21:44:17 -07:00

26 lines
666 B
C

#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_ */