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

Revert PR #6870 numba.core.retarget #9539

Merged
merged 4 commits into from Apr 24, 2024
Merged

Conversation

sklam
Copy link
Member

@sklam sklam commented Apr 23, 2024

Closes #9538

This reverts commit 0ccda58, reversing changes made to 71ea2b1.

As noted in numba#7156, it is not easy to find a testcase that does not use retarget to replicate the bug in numba#7155.
Since it is an internal bug that is fixed, I believe it is okay to remove this test without an replacement.
@sklam sklam added skip_release_notes Skip towncrier requirement and removed skip_release_notes Skip towncrier requirement labels Apr 23, 2024
@sklam sklam changed the title Revert PR #6870 numba.core.retarget Revert PR #6870 numba.core.retarget Apr 23, 2024
@sklam sklam marked this pull request as ready for review April 23, 2024 22:16
@gmarkall
Copy link
Member

gpuci run tests

Copy link
Member

@gmarkall gmarkall left a comment

Choose a reason for hiding this comment

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

There's a test, numba.tests.test_compiler_flags.TestFlagMangling.test_demangling_from_mangled_symbols that is still setting the target_backend flag:

def test_demangling_from_mangled_symbols(self):
    """Test demangling of flags from mangled symbol"""
    # Use default mangler to mangle the string
    fname = 'foo'
    argtypes = types.int32,
    flags = Flags()
    flags.nrt = True
    flags.target_backend = "myhardware"
    ...

(this was added after #6870 was merged)

@sklam
Copy link
Member Author

sklam commented Apr 24, 2024

@gmarkall

RE: #9539 (review)

good catch. It's fixed in f74526d

Copy link
Member

@gmarkall gmarkall left a comment

Choose a reason for hiding this comment

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

Looks good to me. I won't run gpuci again as it seems irrelevant for the change added since it last ran.

@gmarkall gmarkall 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 Apr 24, 2024
@gmarkall gmarkall added this to the 0.60.0-rc1 milestone Apr 24, 2024
@sklam sklam merged commit 609c8c9 into numba:main Apr 24, 2024
21 checks passed
gmarkall added a commit to gmarkall/numba that referenced this pull request Apr 24, 2024
This option is going to be removed by numba#9539 when it is merged.
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.

Remove numba.core.retarget
3 participants