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

Fix cpu detection of sse2 on non-64 x86 #1467

Merged
merged 3 commits into from
Jun 26, 2023

Conversation

kdt3rd
Copy link
Contributor

@kdt3rd kdt3rd commented Jun 26, 2023

Previous code accidentally elided the i386 (i.e. non-64 bit versions of x86 compiles). This refactors and simplifies the ifdef snarl to clarify and fix that.

Fixes #1459

Previous code accidentally elided the i386 (i.e. non-64 bit versions of
x86 compiles). This refactors and simplifies the ifdef snarl to clarify
and fix that.

Fixes AcademySoftwareFoundation#1459

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
We require gcc / clang style inline asm for avx support, detecting it
properly causes problems for the dwa support which uses that. Disable
again.

Signed-off-by: Kimball Thurston <kdt3rd@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.

this should reduce the chance of introducing errors in the snarl in future maintenance

Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

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

LGTM

@cary-ilm cary-ilm merged commit f1d6620 into AcademySoftwareFoundation:main Jun 26, 2023
cary-ilm pushed a commit to cary-ilm/openexr that referenced this pull request Jul 25, 2023
* Fix cpu detection of sse2 on non-64 x86

Previous code accidentally elided the i386 (i.e. non-64 bit versions of
x86 compiles). This refactors and simplifies the ifdef snarl to clarify
and fix that.

Fixes AcademySoftwareFoundation#1459

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Fix mismatch with windows and enable avx support check there

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Disable avx detection under msvc for now

We require gcc / clang style inline asm for avx support, detecting it
properly causes problems for the dwa support which uses that. Disable
again.

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

---------

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
cary-ilm pushed a commit that referenced this pull request Jul 31, 2023
* Fix cpu detection of sse2 on non-64 x86

Previous code accidentally elided the i386 (i.e. non-64 bit versions of
x86 compiles). This refactors and simplifies the ifdef snarl to clarify
and fix that.

Fixes #1459

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Fix mismatch with windows and enable avx support check there

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

* Disable avx detection under msvc for now

We require gcc / clang style inline asm for avx support, detecting it
properly causes problems for the dwa support which uses that. Disable
again.

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>

---------

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@yselkowitz
Copy link
Contributor

This broke the build when compiling with -march=x86-64-v3; filed #1507 to fix.

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.

SSE2 test inconsistency on i686
4 participants