-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Update mozconfigs with -mavx2 -mfma, and correct issue in windows mozconfig rustflags #1216
Conversation
Thanks! But wouldn't this lower the CPU requirements? |
Heya, unfortunately, axv2 is already included with Checkout what
|
@mauro-balades Well, the flags have everything up to -mavx, and then the -march=x86_64-v3 directly after. I was just going with how the code currently is and adding -mavx2 and -fma to complete the lines. Also, the Windows config was inadvertently set in RUSTFLAGS to Also, I should have put this in the notes, but even though -march=xxx is supposed to propagate all the individual -mxxx flags, I have found through experience with Chromium and Firefox, especially concerning third party libraries such as the ones in the third_party dir in both Chromium and Firefox like WebRTC, that that isn't often the case. For example, in Chromium, in //third_party/ffmpeg, if one passes -march=x86_64-v3, it won't compile the AVX2 files for fast Fourier transform audio paths, but it will if you use -mavx2. So just to cover all the bases and prevent any ambiguity as to whether a flag is being passed, I like to do as this commit does, and pass all the I like to keep things simple too, but because I'm a speed freak, I never skimp out on my compiler flags lolol. I even have a lot of -mllvm, blahblahblah flags in Thorium, such as loop unrolling and a 2nd vectorizor pass to "SIMDify" loops after they have been unrolled. Also, is this the same guy I was talking to on Reddit about this, and had initially thought you had used the flags from Mercury? |
Yep, it's me, the reddit guy. Anyways, thanks for contributing! |
No description provided.