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

[opus] Make AVX an optional feature #10634

Merged
merged 1 commit into from Apr 3, 2020
Merged

Conversation

Ghabry
Copy link
Contributor

@Ghabry Ghabry commented Mar 31, 2020

This makes AVX for opus an optional feature as in some other ports (fftw3)

Emtting AVX by default is still problematic, see: EasyRPG/Player#2059

The CPU mentioned in that issue is from 2013. Unfortunately, Intel disabled AVX on there cheaper CPUs :(
I even found a Pentium CPU from 2017 without AVX support: https://ark.intel.com/content/www/de/de/ark/products/97453/intel-pentium-processor-g4600-3m-cache-3-60-ghz.html

(but my workstation with an i5 from 2012 supports it...)

For opus[core]

objdump -d installed/x86-windows-static/lib/opus.lib | grep "vpxor" | wc -l
0

For opus[avx]

objdump -d installed/x86-windows-static/lib/opus.lib | grep "vpxor" | wc -l
41

@Ghabry
Copy link
Contributor Author

Ghabry commented Mar 31, 2020

The linux build failed in an unrelated package?

@Ghabry Ghabry changed the title opus: Make AVX an optional feature [opus] Make AVX an optional feature Mar 31, 2020
ports/opus/portfile.cmake Outdated Show resolved Hide resolved
ports/opus/portfile.cmake Show resolved Hide resolved
@LilyWangL
Copy link
Contributor

The linux build failed in an unrelated package?

The error on Linux is not related with this PR.

@Ghabry
Copy link
Contributor Author

Ghabry commented Apr 2, 2020

Thanks for the quick feedback, didn't knew about the new feature check func :).
Addressed your coments.

@LilyWangL LilyWangL added info:reviewed Pull Request changes follow basic guidelines and removed waiting for response labels Apr 3, 2020
@dan-shaw dan-shaw merged commit f4759a6 into microsoft:master Apr 3, 2020
@dan-shaw
Copy link
Contributor

dan-shaw commented Apr 3, 2020

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info:reviewed Pull Request changes follow basic guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants