-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is probably not the optimal -march flag (i.e. it falls back to Westmere + RDRND). But since Haswell (after Westmere) includes AVX I don't dare to take this as -march basis. Thanks to RJVB for the detailed issue, making this an easy fix. Fixes: gh-153 Signed-off-by: Matthias Kretz <kretz@kde.org>
- Loading branch information
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the speedy fix. I realise I could have made my report maybe a bit even more complete by adding what gcc 6.2 transates
-march=native
into:clang 3.9.1 also refers to Silvermont, which AFAIK is the predecessor of the "Airmont" series Braswell belongs.
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, Silvermont. I can add that. Do you have any idea why GCC adds '-mtune=generic'? I would have expected '-mtune=silvermont' to be better.
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only know what I just read at Wikipedia. It appears we should just map it directly to Silvermont and skip "Braswell", "Cherry Trail", etc.
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
55121e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually not about -march itself, but -mtune (which is implied by -march and uses the same list of possible architecture names as -march). I.e. the compiler should tune the instruction sequences according to the specific latencies and throughput values of the CPU.