Skip to content

Conversation

@SwayamInSync
Copy link
Member

This workflow emulates the SandyBridge (x86-64-v2) and Haswell (x86-64-v3)
And similar to #56 we can reproduce the failure because of unrecognized instruction in SandyBridge

@SwayamInSync
Copy link
Member Author

Will add the patch, in a different PR to keep the diff under control

Copy link
Member

@ngoldbaum ngoldbaum left a comment

Choose a reason for hiding this comment

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

LGTM, if you feel like it you can probably avoid repeating yourself a bit, see comments.

workflow_dispatch:

jobs:
test_sandy_bridge:
Copy link
Member

Choose a reason for hiding this comment

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

Only if you care to mess with it: I bet you can make a build matrix like:

strategy:
    matrix:
        build-arch: [
            ['sandy_bridge', 'Sandy Bridge (x86_64-v2)'], 
            ['haswell', 'Haswell (x86_64-v3)'],
        ]

And then reduce the definition to use only one job definition and rely on the build matrix to generate the two almost-identical jobs.

run: |
pip install . --no-build-isolation -v
- name: Test import on Haswell (x86-64-v3)
Copy link
Member

Choose a reason for hiding this comment

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

typo, it's x86_64 with an underscore.

@SwayamInSync
Copy link
Member Author

Ah this matrix will cancel the v3 job if v2 got failed, let me search for a workaround if exists

@SwayamInSync
Copy link
Member Author

Cool, now it works

@SwayamInSync
Copy link
Member Author

Cool, merging this, this require some modifications for new commits in #62 so will do those changes there itself

@SwayamInSync SwayamInSync merged commit 08b5708 into numpy:main Jan 21, 2026
11 of 12 checks passed
@SwayamInSync SwayamInSync deleted the old-cpu branch January 21, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants