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

Handle idx and size unification in wrap_index manually. #5984

Merged
merged 4 commits into from
Jun 17, 2021

Conversation

DrTodd13
Copy link
Contributor

Resolves #5442

wrap_index has to compare idx and size and to do that they need to be the same bitwidth. If one is signed and the other unsigned then the old code to unify to the same bitwidth (based on numpy rules) would also switch the type to double. In this PR, we keep the incoming integer types but just extend the bitwidth to be the max of the incoming types. We handle signedness extension correctly as well.

@DrTodd13
Copy link
Contributor Author

@esc Recreation of previous PR with some git history issues.

@stuartarchibald
Copy link
Contributor

@DrTodd13 from OOB discussion, am I correct in recalling that this PR is the replacement for #6779?

@stuartarchibald
Copy link
Contributor

/AzurePipelines run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@DrTodd13
Copy link
Contributor Author

DrTodd13 commented Mar 22, 2021

@DrTodd13 from OOB discussion, am I correct in recalling that this PR is the replacement for #6779?

@stuartarchibald Yes, that is right.

@stuartarchibald
Copy link
Contributor

/AzurePipelines run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@stuartarchibald stuartarchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, couple of minor things to resolve else looks good.

numba/parfors/array_analysis.py Outdated Show resolved Hide resolved
numba/parfors/array_analysis.py Outdated Show resolved Hide resolved
@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review and removed 3 - Ready for Review labels May 19, 2021
DrTodd13 and others added 2 commits May 22, 2021 18:40
Co-authored-by: stuartarchibald <stuartarchibald@users.noreply.github.com>
@DrTodd13 DrTodd13 added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 4 - Waiting on author Waiting for author to respond to review labels May 23, 2021
@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review Effort - medium Medium size effort needed and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author labels Jun 16, 2021
Copy link
Contributor

@stuartarchibald stuartarchibald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch!

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on author Waiting for author to respond to review labels Jun 16, 2021
@sklam sklam merged commit 3e1223f into numba:master Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge Effort - medium Medium size effort needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

prange working with numpy?
4 participants