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

Trying to install this on my raspberry pi model 3b+ fails #65

Open
FedericoValentino opened this issue Apr 15, 2023 · 5 comments
Open

Comments

@FedericoValentino
Copy link

g++-10: error: unrecognized command-line option '-mno-avx2'
g++-10: error: unrecognized command-line option '-msse2'

@oscarhiggott
Copy link
Owner

oscarhiggott commented Apr 15, 2023

How are you installing it? Did you use pip install pymatching or are you cloning the repo and building the CLI or Python package from source?

@FedericoValentino
Copy link
Author

just doing pip install pymatching

@Strilanc
Copy link
Collaborator

These options are probably coming up when building libstim, which uses them to control what word sizes are used for the simd operations on big bit vectors. There have been ongoing changes to templatize all usage of these things, so they're not just controlled by compiler flags. When that's eventually done, it'll probably be possible to drop the -mno-avx2 flag at least..

@FedericoValentino
Copy link
Author

so I cant do anything about it?

@oscarhiggott
Copy link
Owner

For now, you could see if pip install PyMatching==0.7.0 works? Version 0.7 doesn't depend on stim so won't have this same issue, though I've never tested compiling it on a raspberry pi. However v0.7 uses the old implementation of the MWPM decoder so will be 100-1000x slower. But it might suffice for what you need.

I'd like to add prebuilt linux arm wheels for raspberry pi (I just opened #67) once this issue is fixed.

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

No branches or pull requests

3 participants