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

Numba Reduction operations (+=, *=) not supported on GPU #71

Closed
adarshyoga opened this issue Nov 9, 2020 · 2 comments
Closed

Numba Reduction operations (+=, *=) not supported on GPU #71

adarshyoga opened this issue Nov 9, 2020 · 2 comments
Assignees

Comments

@adarshyoga
Copy link
Contributor

Add-assign, multiply-assign operations within Numba par-fors which are reduction operations need to be supported on GPU.

Here is an example kernel in pygbm where "+=" reduction operation is necessary.

@njit(parallel=True)
def _update_raw_predictions(leaves_data, raw_predictions):
  for leaf_idx in prange(len(leaves_data)):
     leaf_value, sample_indices = leaves_data[leaf_idx]
     for sample_idx in sample_indices:
         raw_predictions[sample_idx] += leaf_value
@diptorupd diptorupd transferred this issue from IntelPython/numba Dec 11, 2020
This was referenced Jan 21, 2021
@diptorupd
Copy link
Contributor

TODOs to get prange reductions for + and * working in main:

@diptorupd
Copy link
Contributor

Fixed in #999

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