lkml.org 
[lkml]   [2019]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux 5.0-ad1: -march=native support
On Mon 2019-03-04 20:19:16, Alexey Dobriyan wrote:
> -ad1 patchset adds support for compiling kernel with "-march=native"
> compiler option optimizing kernel for the specific CPU. "-march=native"
> has been available in userspace for a long time and is trivial to enable
> in Gentoo specifically.
>
> "-march=native" can be used for folks like me who compile kernels on
> their home machines and never share binaries.
>
> See the link for more information:
>
> https://www.shlomifish.org/humour/by-others/funroll-loops/Gentoo-is-Rice.html
>
> Requirements:
>
> Intel CPU
> x86_64 arch
>
> Usage:
>
> # apply -ad1 patchset
>
> # copy regular kernel .config
>
> # enable "-march=native" support in
> # "Processor type and features"
> # "Processor family"
>
> # ensure CONFIG_MARCH_NATIVE is enabled
> $ grep -e CONFIG_MARCH_NATIVE .config
>
> # workaround kbuild race condition if "-j" is used
> $ make syncconfig

Linus is unlikely to take this directly; you may want to Cc X86
MAINTAINERS.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-03-27 16:30    [W:0.062 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site