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

Make ol_compatible_view accessible on all targets #8537

Merged
merged 1 commit into from Nov 1, 2022

Conversation

gmarkall
Copy link
Member

@gmarkall gmarkall commented Oct 25, 2022

This is to fix Issue #8529, where test_reinterpret_array_type fails on CUDA with NumPy 1.23 because this overload is needed. Making it accessible to the CUDA target should resolve the issue.

Fixes #8529.

This is to fix Issue numba#8529, where test_reinterpret_array_type fails
on CUDA with NumPy 1.23 because this overload is needed. Making it
accessible to the CUDA target should resolve the issue.
@gmarkall gmarkall added 2 - In Progress CUDA CUDA related issue/PR labels Oct 25, 2022
@gmarkall gmarkall modified the milestone: Numba 0.57 RC Oct 25, 2022
@gmarkall
Copy link
Member Author

gpuci run tests

@gmarkall
Copy link
Member Author

/azp 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. This has been manually tested locally as part of debugging: #8529 (comment). I think it also makes sense as the most minimally invasive method to resolve the problem, i.e. the CUDA target using some lowering from the CPU target that calls out to an @overload... that @overload needs to be for the generic target else the CUDA target cannot "see" it.

Further, as gpuci is now passing (it wasn't in #8532, or by induction the merge to main in 9d034e9) this also suggests the fix is working.

@stuartarchibald stuartarchibald added Pending BuildFarm For PRs that have been reviewed but pending a push through our buildfarm 4 - Waiting on CI Review etc done, waiting for CI to finish and removed 3 - Ready for Review labels Oct 25, 2022
@stuartarchibald stuartarchibald self-assigned this Oct 25, 2022
@stuartarchibald stuartarchibald added this to the Numba 0.57 RC milestone Oct 31, 2022
@sklam sklam added 5 - Ready to merge Review and testing done, is ready to merge and removed Pending BuildFarm For PRs that have been reviewed but pending a push through our buildfarm 4 - Waiting on CI Review etc done, waiting for CI to finish labels Nov 1, 2022
@sklam sklam merged commit a56a652 into numba:main Nov 1, 2022
@esc esc mentioned this pull request Nov 1, 2022
35 tasks
esc pushed a commit to esc/numba that referenced this pull request Nov 1, 2022
Make ol_compatible_view accessible on all targets
@stuartarchibald
Copy link
Contributor

Buildfarm ID: numba_smoketest_cuda_yaml_164.

Passed.

gmarkall added a commit to gmarkall/numba that referenced this pull request Nov 2, 2022
As identified in numba#8271, the CUDA target needs to be set as the target at
the bottom of the call stack, otherwise overloads for the generic target
cannot be resolved. This is required so that the fix applied in numba#8562
(using the generic target for `ol_compatible_view` from numba#8537) actually
works.
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 CUDA CUDA related issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CUDA test: test_reinterpret_array_type is failing on NumPy 1.23
3 participants