|
From: | Ben Woodcroft |
Subject: | Re: Optionally using more advanced CPU features |
Date: | Sat, 26 Aug 2017 11:39:41 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
Hi, On 21/08/17 22:23, Ricardo Wurmus
wrote:
In many cases we can set the --with-arch flag when configuring GCC, so that packages built with that GCC are optimised for that architecture by default.Hi Guix, I was wondering how we should go about optionally building software for more advanced CPU features. Currently, we build software for the lowest common feature set among x86_64 CPUs. That’s good for portability, but not so good for performance. We have discussed this in the past, (https://lists.gnu.org/archive/html/guix-devel/2016-10/msg00005.html) but as you say individual packages sometimes need individual attention. Anyway, to move forward I created a repo so that package recipes can be modified to use a GCC that has been optimised for a particular architecture. I put it out there so that it is more than just a patch on this ML, but I'd be happy to incorporate it into Guix proper if that is desired. https://github.com/wwood/cpu-specific-guix For instance, to build DIAMOND optimised for sandybridge: GUILE_LOAD_PATH=/path/to/cpu-specific-guix:$GUILE_LOAD_PATH\
HTH, ben |
[Prev in Thread] | Current Thread | [Next in Thread] |