New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalise parallel loops - piter() #2628

Open
scoder opened this Issue Sep 25, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@scoder
Contributor

scoder commented Sep 25, 2018

Cython currently restricts OpenMP loops to integer iteration using cython.parallel.prange().

A more general cython.parallel.piter() to wrap iterables would allow extending this to C++ iteration, C arrays, bytes/unicode buffers and direct memory view iteration (currently not implemented). Except for C++ iteration (which the C++ compiler can handle), all of these cases are mapped to integer iteration internally and would thus be converted to a normal prange() loop by Cython.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment