Skip to content

Commit eba8f04

Browse files
author
Diptorup Deb
committed
support Python 3.11
1 parent 39f012d commit eba8f04

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

numba_dpex/core/runtime/_nrt_python_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ PyTypeObject MemInfoType = {
183183
* act as a reminder to update this struct on Python version update! */
184184
#if (PY_MAJOR_VERSION == 3)
185185
#if !((PY_MINOR_VERSION == 8) || (PY_MINOR_VERSION == 9) || \
186-
(PY_MINOR_VERSION == 10))
186+
(PY_MINOR_VERSION == 10) || (PY_MINOR_VERSION == 11))
187187
#error "Python minor version is not supported."
188188
#endif
189189
#else

numba_dpex/core/runtime/_nrt_python_helper.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,4 @@ PyObject *MemInfo_get_refcount(MemInfoObject *self, void *closure);
3232
PyObject *MemInfo_get_external_allocator(MemInfoObject *self, void *closure);
3333
PyObject *MemInfo_get_parent(MemInfoObject *self, void *closure);
3434

35-
/* WARNING: Do not remove this, only modify it! It is a version guard to
36-
* act as a reminder to update this struct on Python version update! */
37-
#if (PY_MAJOR_VERSION == 3)
38-
#if !((PY_MINOR_VERSION == 8) || (PY_MINOR_VERSION == 9) || \
39-
(PY_MINOR_VERSION == 10))
40-
#error "Python minor version is not supported."
41-
#endif
42-
#else
43-
#error "Python major version is not supported."
44-
#endif
45-
/* END WARNING*/
46-
4735
#endif /* _NRT_PYTHON_HELPER_H_ */

0 commit comments

Comments
 (0)