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

Disable OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX when building on arm64 macOS #772

Merged
merged 2 commits into from
Jul 5, 2020

Conversation

betajippity
Copy link
Contributor

For some reason, the compile check for detecting inline AVX support does
not correctly disable OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX when building
on arm64 macOS using clang (the check does work correctly on aarch64 Linux
using gcc). This change hardcodes OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX to
always be false when the system is detected as arm64 macOS. This change
is necessary to allow building on arm64 macOS to complete successfully.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 3, 2020

CLA Check
The committers are authorized under a signed CLA.

For some reason, the compile check for detecting inline AVX support does
not correctly disable OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX when building
on arm64 macOS using clang (the check does work correctly on aarch64 Linux
using gcc). This change hardcodes OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX to
always be false when the system is detected as arm64 macOS. This change
is necessary to allow building on arm64 macOS to complete successfully.

Signed-off-by: Yining Karl Li <betajippity@gmail.com>
Copy link
Contributor

@meshula meshula left a comment

Choose a reason for hiding this comment

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

Ain't no AVX on ARM!

@meshula
Copy link
Contributor

meshula commented Jul 4, 2020

@betajippity Could you do the DCO thing? I believe you have to amend the commit with some boilerplate.

@betajippity
Copy link
Contributor Author

betajippity commented Jul 4, 2020

@meshula I thought I already did the DCO thing? Or do I have to do it again?

@meshula
Copy link
Contributor

meshula commented Jul 4, 2020

Must have been an automation glitch! Everything is green now :)

@meshula meshula merged commit 67053eb into AcademySoftwareFoundation:master Jul 5, 2020
@LxLasso
Copy link

LxLasso commented Aug 29, 2020

But.. what if you are building for multiple architectures? I may be confused, my cmake knowledge is low and after running cmake we build in Xcode, but this fix would appear to disable AVX only if building arm64 only? (My dirty fix is adding #if !defined(__arm64__) in OpenEXRConfigInternal.h.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants