4 ms·
This discussion flared up recently when mesa and Arch Linux were considering changing the defaults or providing new packages. https://www.phoronix.com/scan.php?
by Joe_Cool 6y ago
This discussion flared up recently when mesa and Arch Linux were considering changing the defaults or providing new packages.
https://www.phoronix.com/scan.php?page=news_item&px=Mesa-2021-CPU-Baseline https://www.phoronix.com/scan.php?page=news_item&px=Mesa-202...
From experience using `-march=native` is not a magical release brake and speed up switch. It works great for some projects and does almost nothing for others.
Including multiple code paths usually has very little overhead unless used in a tight loop or the branch predictors become confused by it.
Here is a Thread from the Arch mailing list: https://lists.archlinux.org/pipermail/arch-general/2021-March/048739.html https://lists.archlinux.org/pipermail/arch-general/2021-Marc...
- jart 5y agoThat's mostly true. For something like TensorFlow -march=native can be like night and day. What I try to do with Cosmopolitan Libc, is CPUID dispatching, so it doesn't matter what the march flag is set to, for crucial code paths like CRC32, which go 51x faster if Westmere is available.