Skip to content

add armv7 target #42

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

Closed
wants to merge 1 commit into from
Closed

add armv7 target #42

wants to merge 1 commit into from

Conversation

KodrAus
Copy link
Contributor

@KodrAus KodrAus commented Oct 16, 2020

In #41 I ran into some test case failures with ARMv7 on a Raspberry Pi. I'm just opening this up to see if I can replicate those on the targets available to use in CI.

@KodrAus
Copy link
Contributor Author

KodrAus commented Oct 16, 2020

Alas it succeeds 🙃

@thomcc
Copy link
Member

thomcc commented Oct 16, 2020

I'm hoping to replicate the CI setup from https://github.com/rust-lang/stdarch/ and/or https://github.com/rust-lang/packed_simd this weekend, which (if successful) will help here. That said looking at what you have there, I think you're running on arm64 which is armv8, no?

- name: "armv7-unknown-linux-gnueabihf (neon)"
os: linux
arch: arm64
env: RUSTFLAGS=-Ctarget-feature=+neon
Copy link
Member

Choose a reason for hiding this comment

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

Adding +neon after the fact to the armv7-unknown-linux-gnueabihf target results in terrible performance due to the mismatch between the pre-built std and what's being built with +neon.

The target that doesn't suffer from this problem is thumbv7neon-unknown-linux-gnueabihf, which bakes the neon option into the target definition and, therefore, comes with neon-enabled std.

@KodrAus
Copy link
Contributor Author

KodrAus commented Oct 16, 2020

@thomcc I believe so yes, but am not super familiar with ARM so am deferring to you on it 😄 I was curious to see if I could quickly make it fail the same way in CI for us.

I should have signaled better than this was a quick experiment, and will go ahead and close this.

@KodrAus KodrAus closed this Oct 16, 2020
@KodrAus KodrAus deleted the ci/armv7 branch January 19, 2021 23:45
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.

3 participants