[SOLVED] -march=native as configure option?
Posted: 2012-03-01T11:01:17-07:00
Wouldn't it be a good idea to have -march=native be on by default when building from source? http://en.gentoo-wiki.com/wiki/Safe_Cflags
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=20439
Code: Select all
CFLAGS="-march=native" ./configure
principle. (This rule of thumb is sometimes mitigated by another one having to do with workers sharing limited workspace or tools, but if the memory requirements of the individual tasks are moderate and GPUs are not heavily involved this amendment should not apply. You want to avoid jobs being swapped in and out.)If you have one big job and lots of workers, put all workers on the job. But if you have lots of jobs, give one job to each worker so that they don't waste time coordinating.
Code: Select all
AX_GCC_ARCHFLAG([no])
Code: Select all
CFLAGS="-march=native" ./configure
Code: Select all
./configure --with-gcc-arch=native