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

Adds tests for PR 5659 #6664

Merged
merged 7 commits into from Feb 3, 2021
Merged

Adds tests for PR 5659 #6664

merged 7 commits into from Feb 3, 2021

Conversation

sklam
Copy link
Member

@sklam sklam commented Jan 27, 2021

Based on #5659
Adds tests for 1D, 2D, 3D and C/F order arrays for parfors.

Note for reviewer: the main changes to the PR starts in 2628ec4.
The only file I touched in the test_parfors.py.

@sklam sklam added this to the Numba 0.53 RC milestone Jan 27, 2021
@sklam sklam marked this pull request as ready for review January 27, 2021 19:40
@sklam sklam added Effort - short Short size effort needed Effort - medium Medium size effort needed and removed Effort - short Short size effort needed labels Jan 27, 2021
Copy link
Collaborator

@DrTodd13 DrTodd13 left a comment

Choose a reason for hiding this comment

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

This needed to be done. Thanks for doing it. Looks like it is running with no errors.

src = cycle(gen())
return [next(src) for i in range(ct)]

def gen_linespace_variants(self, ct):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you mean linespace or linspace?

Copy link
Member Author

Choose a reason for hiding this comment

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

oops, it's linspace.

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 writing these extra tests @sklam, looks good, just one dead comment to remove and then can be merged.

@@ -1920,7 +1920,8 @@ def run(self, blocks):
if isinstance(instr, ir.Assign):
expr = instr.value
lhs = instr.target
if self._is_C_order(lhs.name):
lhs_typ = self.pass_states.typemap[lhs.name]
if self._is_C_or_F_order(lhs_typ):
# only translate C order since we can't allocate F
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this comment?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, this comment should go.

@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review and removed 3 - Ready for Review labels Feb 3, 2021
@@ -1920,7 +1920,8 @@ def run(self, blocks):
if isinstance(instr, ir.Assign):
expr = instr.value
lhs = instr.target
if self._is_C_order(lhs.name):
lhs_typ = self.pass_states.typemap[lhs.name]
if self._is_C_or_F_order(lhs_typ):
# only translate C order since we can't allocate F
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, this comment should go.

@sklam
Copy link
Member Author

sklam commented Feb 3, 2021

i've removed the dead comment

@sklam sklam 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 Feb 3, 2021
@stuartarchibald
Copy link
Contributor

i've removed the dead comment

thanks.

@stuartarchibald stuartarchibald added 4 - Waiting on CI Review etc done, waiting for CI to finish and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author labels Feb 3, 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(es). Looks good, great to see this working.

@stuartarchibald stuartarchibald removed the 4 - Waiting on CI Review etc done, waiting for CI to finish label Feb 3, 2021
@stuartarchibald stuartarchibald added the 5 - Ready to merge Review and testing done, is ready to merge label Feb 3, 2021
@sklam sklam dismissed DrTodd13’s stale review February 3, 2021 21:10

the dead comment has been removed.

@sklam sklam merged commit 59dc96e into numba:master Feb 3, 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.

None yet

3 participants