You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running Cython 3.0.11 with gcc 7.5.0. When I compile attached minimal example I see the following issue with C compiler:
src/chunksize/my.c: In function ‘__pyx_f_2my__foo’:
src/chunksize/my.c:4743:33: error: ‘__pyx_v_chunksize’ undeclared (first use in this function); did you mean ‘__pyx_k_chunksize’?
__pyx_t_3 = __pyx_v_chunksize;
^~~~~~~~~~~~~~~~~
__pyx_k_chunksize
src/chunksize/my.c:4743:33: note: each undeclared identifier is reported only once for each function it appears in
Code to reproduce the behaviour:
import numpy as np
from cython.parallel cimport prange, parallel
cimport numpy as np
cimport cython
deffoo(int chunksize=0):
return _foo(chunksize)
@cython.boundscheck(False)
@cython.wraparound(False)
cdef void _foo(intchunksize=0):
cdef Py_ssize_t x_index
with nogil, parallel():
for x_index in prange(1024, schedule='static', chunksize=chunksize):
pass
Expected behaviour
The code compiled successfully.
OS
Linux
Python version
3.11.9
Cython version
3.0.11
Additional context
No response
The text was updated successfully, but these errors were encountered:
matwey
added a commit
to snad-space/coniferest
that referenced
this issue
Oct 31, 2024
Describe the bug
Hello,
I am running Cython 3.0.11 with gcc 7.5.0. When I compile attached minimal example I see the following issue with C compiler:
Code to reproduce the behaviour:
Expected behaviour
The code compiled successfully.
OS
Linux
Python version
3.11.9
Cython version
3.0.11
Additional context
No response
The text was updated successfully, but these errors were encountered: