Skip to content
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

lowering of loop ranges with start/step #8

Open
ehsantn opened this issue May 11, 2017 · 4 comments
Open

lowering of loop ranges with start/step #8

ehsantn opened this issue May 11, 2017 · 4 comments
Assignees

Comments

@ehsantn
Copy link

ehsantn commented May 11, 2017

Commit be51d48 in phdf5 branch adds support for start and step in parfor loops. However, we need lowering support in gufunc backend.

@ninegua
Copy link

ninegua commented May 12, 2017

Is there any sample program to run in this branch?

@ehsantn
Copy link
Author

ehsantn commented May 12, 2017

This branch needs a bit of set up at the moment but you can cherry-pick be51d48 and 20209a4, then run any data-parallel program to see initial errors. Below is an example. For testing start and step fields, we can set them manually in parfor pass to different values.

import numba
import numpy as np

@numba.njit(parallel=True)
def ff(n):
    A = np.ones(n)
    return np.sum(A)

n = 128
print(ff(n))

@ninegua
Copy link

ninegua commented May 15, 2017

Supporting step size other than 1 is tricky, I'm putting this off for now.

Branch parfor-range should have working code supporting start/stop in LoopNest.

@DrTodd13
Copy link

I believe the scheduling part of this is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants