From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-136620-garchives=archives.gentoo.org@lists.gentoo.org>) id 1S9dWd-0002Ml-U7 for garchives@archives.gentoo.org; Mon, 19 Mar 2012 14:25:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7EA9E0B0E; Mon, 19 Mar 2012 14:25:17 +0000 (UTC) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 8A327E0D0E for <gentoo-user@lists.gentoo.org>; Mon, 19 Mar 2012 14:24:09 +0000 (UTC) Received: by bkwj4 with SMTP id j4so5183916bkw.40 for <gentoo-user@lists.gentoo.org>; Mon, 19 Mar 2012 07:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=a9gNPFse5iAnlnn9xPxv4DvEKnq/AvOpBa5rgILp9gc=; b=ci65LYJ0aRf2aWDV+HaQvm19FMf4zZ1hLYJ/mSrTMD+R3rrBX42MxsEqNPfdd58bl3 iY1DCGUaYEHs/yOqGvhaFlVdoXa5XgqU811BLy2yEc3E+k7De3W2ftzdnL26f9TNGjqv BTOKOMpWAjnF5xVBdj5hs7kKWbprODP5fOPx/haVGNM9HTd99eanps6sorJ/eyFXlHq0 TGrouN2PGNe+GP77pRQLv1twjMeN6KqbYDuM9cv9WE9iyYyiZ6aXgpe55AjbKvGnUMnA 3HE2GlS5Jrr8ZGJyI41tsyJPKmQhCs/dRi8C78B3VMXouehaupjHT+21hPF21vWCVffQ /8gw== Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.204.131.74 with SMTP id w10mr4841224bks.84.1332167048582; Mon, 19 Mar 2012 07:24:08 -0700 (PDT) Received: by 10.204.168.17 with HTTP; Mon, 19 Mar 2012 07:24:08 -0700 (PDT) In-Reply-To: <4F673D34.6070904@wht.com.au> References: <20120319132643.Horde.NzbZHrtUV7tPZsOT40nUZ2A@webmail.wht.com.au> <CAK2H+ee0_Hk3nEoyPK+fgL5yhkvUrwKySBF74BG__EtYJUrbng@mail.gmail.com> <CAK2H+edKDq_Zjk=ohJ=XhXRSoBM9ERtyZ=2JQ7KV8wwrAwLvyQ@mail.gmail.com> <4F673D34.6070904@wht.com.au> Date: Mon, 19 Mar 2012 10:24:08 -0400 Message-ID: <CA+czFiDjMme-Lb6a0GWx9Uvt1=VMx_3XCj2dOUTc=5OPJm=iQA@mail.gmail.com> Subject: Re: [gentoo-user] Changing compilers From: Michael Mol <mikemol@gmail.com> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 6b14f517-f227-4f87-b76d-d6acb3f1ef55 X-Archives-Hash: 395337d86f0d45c4d1895394277efd4d On Mon, Mar 19, 2012 at 10:05 AM, Andrew Lowe <agl@wht.com.au> wrote: > On 03/19/12 20:34, Mark Knecht wrote: >> On Mon, Mar 19, 2012 at 5:32 AM, Mark Knecht <markknecht@gmail.com> wrot= e: >>> On Sun, Mar 18, 2012 at 10:26 PM, Andrew Lowe <agl@wht.com.au> wrote: >>>> Hi all, >>>> =C2=A0 =C2=A0Has anyone played around with the various "better known" = compilers on >>>> Gentoo? By "better known", I'm referring to gcc, Intel, llvm, pathscal= e. My >>>> situation is that I've just started my PhD which requires me to do Fin= ite >>>> Element Analysis, FEA, and Computational Fluid Dynamics, CFD, and I wa= nt to >>>> find the "best" compiler for the job. Before anyone says "Why bother, = XXX >>>> compiler is only 1 - 2% faster than gcc", in the context of the work I= 'm >>>> doing this 1 - 2% IS important. >>>> >>>> What I'm looking for is any feedback people may have on ability to com= pile >>>> the Gentoo environment, the ability to change compilers easily, gcc-co= nfig >>>> or flags in make.conf, as to whether the compiler/linker can use the >>>> libraries as compiled by gcc on a "standard" gentoo install and so on. >>>> Obviously there is much web trawling to be done to find what other peo= ple >>>> are saying as well. >>>> >>>> Any thoughts, greatly appreciated, >>>> =C2=A0 =C2=A0 =C2=A0 Andrew Lowe >>>> >>>> >>> >>> Think CUDA >>> >>> Mark >> >> Sorry. Meant to include this reference: <$15 on Kindle. Reads great on >> Kindle for PC. >> >> http://www.amazon.com/CUDA-Example-Introduction-General-Purpose-ebook/dp= /B003VYBOSE/ref=3Dsr_1_4?ie=3DUTF8&qid=3D1332160431&sr=3D8-4 >> >> > > =C2=A0 =C2=A0 =C2=A0 =C2=A0I'm sorry but I'm doing a PhD, not creating a = career in Academia. The > concept of writing an FEA or CFD from scratch, with CUDA is laughable, I > just don't have the time to learn CUDA, research the field, small > displacement, large displacement, dynamics, material nonlinearities, > write the code, and then most importantly benchmark it to make sure it's > actually correct. This is all bearing in mind that I have 20+ years > experience as a C/C++ technical software developer, including FEA and > CFD. I'll actually be using Code Aster, an open source FEA code that > runs under Linux. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Sorry if I sound narky, but compilers is the s= ubject at hand, not how > to write FEA code. If you really care about a 1-2% difference, you should not be dismissing GPGPU-accelerated code so easily! If the tools you seem to have already settled on don't support it, you should either use different tools, or correct the ones you're working with. The lead Python guy had an astute observation (which I'll generalize) the other day; for 99% of your program, it doesn't matter what programming language you use. For the 1% where you need speed, you should call out into the faster language. --=20 :wq