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

[BUG] neon support is disabled on macOS arm #3909

Closed
1-Olivier opened this issue Jul 13, 2023 · 3 comments · Fixed by #3911
Closed

[BUG] neon support is disabled on macOS arm #3909

1-Olivier opened this issue Jul 13, 2023 · 3 comments · Fixed by #3911

Comments

@1-Olivier
Copy link

Commit 22a8196 does #define OIIO_NO_NEON 1 whenever __aarch64__ is set so a macOS arm build ends up with no neon support. By the commit message and comments, I don't think that was the intent.

Stuff still works. I only found out because I have an assertion in my code that some buffers provided by OSL should be 16 byte aligned and they weren't.

@lgritz
Copy link
Collaborator

lgritz commented Jul 13, 2023

You are quite right, that looks wrong. Should be an easy fix, I will prepare a PR right away.

@lgritz
Copy link
Collaborator

lgritz commented Jul 15, 2023

Please see proposed fix in #3911. @1-Olivier can you try that out on your end and verify that it looks right to you?

@1-Olivier
Copy link
Author

Looks good and works for me.

lgritz added a commit that referenced this issue Jul 17, 2023
Clean up the `#if` tests that disable Intel SIMD when not on Intel
architectures, which incorrectly disabled ARM NEON when on ARM.

Fixes #3909

Signed-off-by: Larry Gritz <[email protected]>
lgritz added a commit to lgritz/OpenImageIO that referenced this issue Jul 17, 2023
…3911)

Clean up the `#if` tests that disable Intel SIMD when not on Intel
architectures, which incorrectly disabled ARM NEON when on ARM.

Fixes AcademySoftwareFoundation#3909

Signed-off-by: Larry Gritz <[email protected]>
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 a pull request may close this issue.

2 participants