From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FypLY-00082S-QZ for garchives@archives.gentoo.org; Fri, 07 Jul 2006 12:22:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k67CLIOw025733; Fri, 7 Jul 2006 12:21:18 GMT Received: from smtp0.libero.it (smtp0.libero.it [193.70.192.33]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k67CI4i9020385 for ; Fri, 7 Jul 2006 12:18:05 GMT Received: from localhost (172.16.1.177) by smtp0.libero.it (7.0.027-DD01) id 44A3655900926DD0 for gentoo-dev@lists.gentoo.org; Fri, 7 Jul 2006 14:18:04 +0200 Received: from smtp0.libero.it ([172.16.1.204]) by localhost (asav0.libero.it [193.70.192.9]) (amavisd-new, port 10024) with ESMTP id 15119-02-5 for ; Fri, 7 Jul 2006 14:18:04 +0200 (CEST) Received: from [192.168.0.6] (adsl-ull-62-62.44-151.net24.it [151.44.62.62]) by smtp0.libero.it (Postfix) with ESMTP id 626B2333892 for ; Fri, 7 Jul 2006 14:18:02 +0200 (MEST) Message-ID: <44AE50F8.4050305@gentoo.org> Date: Fri, 07 Jul 2006 14:18:00 +0200 From: Luca Barbato User-Agent: Thunderbird 1.5.0.4 (X11/20060603) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Replacing cpu-feature USE flags References: <200607061252.33028@enterprise.flameeyes.is-a-geek.org> <44AD92AF.305@gentoo.org> <44AE472E.5020207@gentoo.org> In-Reply-To: <44AE472E.5020207@gentoo.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Scanned: with antispam and antivirus automated system at libero.it X-Archives-Salt: e123d4e2-bc08-46a7-9bb9-045611e923a3 X-Archives-Hash: 91f65e6fa5c14e02e02a4ab4e694f4c7 Simon Stelling wrote: > Luca Barbato wrote: >> Alternatives: >> >> - as PPC we provide a default cflags & use tuned per certain cpu >> families using profiles, amd64 could provide a nocona profile that bans >> 3dnow* useflags. > > Not really. There are athlon64s and opterons with and without sse3 support. The > users who have an sse3-enabled CPU mostly stick -msse3 into their CFLAGS, as > they expect the flag to do what it says. The problem is even worse for x86: > You'd have to provide own profiles for: > > * i386 there is already isn't it? > * pentium-mmx,k6 people know what they are > * athlon xp,pentium3 ditto > * pentium4,athlon64/opteron (starting from 'Paris' core),celeron (starting from > 'willamette' core) those are relatively new > * celeron D/M, core solo/duo,core 2 duo, core 2 extreme,athlon64 (starting from > venice stepping E3 or san diego stepping E4), athlon64 X2, athlon64 FX (starting > from san diego stepping E4), sempron (starting from palermo stepping E3), Don't complain with me about marketing > pentium4 (starting from 'prescott') and so on... > etc... > > and now you want to let your pentium4(paris)-server, which is running 24/7, > compile a binpkg for your pentium4(prescott), using SSE3 > > have fun 8-) I take the base profile and turn sse3 useflag on, tune the cflags properly and then I issue the emerge -B foo as usual specific profiles are good just for disoriented users that need something working quickly, people knowing their system and what they want would be much happy with the useflags. Having better descriptions for flags could be of help too. Keep in mind that discover what your cpu or another cpu could take as cflags or simdflags requires the same (look at the arch faq about it, parse the cpuinfo, google a bit) > I'm not sure whether I understand this correctly. If we use flameeyes logic > anyway, why keeping the use flags? > Because you may not want all the flags the gcc guess would set for a reason or another (and there are many, including having gcc-X.ugly doing the worst with -msimd_du_jour but having some nicely tuned routines for that simd triggered by --enable-simd_du_jour) lu -- Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero -- gentoo-dev@gentoo.org mailing list