I'm trying to test writing extensions that release the gil. This simple
example is failing cython compilation with errors stating that the count()
function requires the gil.

Can anyone point me in the right direction?

Thanks,

Chris


##### code ##########

cdef double count(int n) nogil:
    cdef int i, j, k
    cdef double out
    for i in range(n):
        for j in range(n):
            out = 0
            for k in range(n):
                out += k

    return out


def myinterface():
    cdef int n = 10000000
    cdef double out
    out = count(n)
    return out
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to