I have a question regarding the use flags with the intel64-haswell subarch. Since I don't plan to compile code on any other machine but the computer I'm installing on, why would the use flag -march=core-avx2 be superior to -march=native?
Perhaps I'm incorrect, but wouldn't -march=native be best for me? If not, why? I'm really confused by core-avx2. I could be wrong, but I think using -march=native is equivalent to -march=haswell in this case. If so, is -march=haswell different from -march=core-avx2?
I did notice that the CPU_FLAGS mentioned on the subarch page missed avx2, so I added that into the CPU_FLAGS within make.conf.
Question
therickaman
Hello All,
I have a question regarding the use flags with the intel64-haswell subarch. Since I don't plan to compile code on any other machine but the computer I'm installing on, why would the use flag -march=core-avx2 be superior to -march=native?
Perhaps I'm incorrect, but wouldn't -march=native be best for me? If not, why? I'm really confused by core-avx2. I could be wrong, but I think using -march=native is equivalent to -march=haswell in this case. If so, is -march=haswell different from -march=core-avx2?
I did notice that the CPU_FLAGS mentioned on the subarch page missed avx2, so I added that into the CPU_FLAGS within make.conf.
Any help would be greatly appreciated.
Thanks,
Rick
Link to comment
Share on other sites
3 answers to this question
Recommended Posts