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

Release 0.56 branch: Fix overloads with target="generic" for CUDA #8570

Merged
merged 1 commit into from Nov 2, 2022

Conversation

gmarkall
Copy link
Member

@gmarkall gmarkall commented Nov 2, 2022

As identified in #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 #8562 (using the generic target for ol_compatible_view from #8537) actually works.

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.
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, I've tested this locally and it fixes the noted issue. I think it also makes sense that this would be needed as the path that's failing is quite likely unaware of what the current target is as it has CUDA lowering calling typing and lowering on a 'generic' target.

@stuartarchibald stuartarchibald added the 4 - Waiting on CI Review etc done, waiting for CI to finish label Nov 2, 2022
@stuartarchibald stuartarchibald added this to the Numba 0.56.4 milestone Nov 2, 2022
@stuartarchibald stuartarchibald added the Effort - short Short size effort needed label Nov 2, 2022
@esc
Copy link
Member

esc commented Nov 2, 2022

Build numba_smoketest_cuda_yaml_167 has started
Build numba_smoketest_cpu_yaml_147 has started

@esc
Copy link
Member

esc commented Nov 2, 2022

Build numba_smoketest_cuda_yaml_167 has started Build numba_smoketest_cpu_yaml_147 has started

These were all green.

@esc esc added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on CI Review etc done, waiting for CI to finish labels Nov 2, 2022
Copy link
Member

@esc esc left a comment

Choose a reason for hiding this comment

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

Checked via CI

@esc esc mentioned this pull request Nov 2, 2022
35 tasks
@esc esc merged commit 288a38b into numba:release0.56 Nov 2, 2022
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 - short Short size effort needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants