This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to define multiple processor families?
- From: Feng Longda <hustjackie at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 7 May 2018 18:30:27 +0800
- Subject: How to define multiple processor families?
hi ,
May I ask a question ?
Any help are appreciated.
If we set -march/tune to define processor, we can obtain some extra
performance improvement.
I want to run my application on different intel processor family, for
example: broadwell, skylake, haswell, skylake-avx512.
What should I set? Does It like the following ?
-march=broadwell -mtune=intel -mmmx -msse -msse -msse2 -msse3 -mavx
-mavx2 -mavx=512f -mavx512pf ...
BTW: current gcc version is 7.3 on centos 7.2
Thanks
Longda