From owner-freebsd-current@FreeBSD.ORG Tue Feb 12 10:31:33 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9A641E0E for ; Tue, 12 Feb 2013 10:31:33 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 63B33329 for ; Tue, 12 Feb 2013 10:31:32 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1U5D99-0004ib-MW; Tue, 12 Feb 2013 10:31:31 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1U5D99-0004bs-1P; Tue, 12 Feb 2013 10:31:31 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r1CAVUNh098620; Tue, 12 Feb 2013 10:31:30 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r1CAVTIa098618; Tue, 12 Feb 2013 10:31:29 GMT (envelope-from mexas) Date: Tue, 12 Feb 2013 10:31:29 GMT From: Anton Shterenlikht Message-Id: <201302121031.r1CAVTIa098618@mech-cluster241.men.bris.ac.uk> To: mexas@bristol.ac.uk, sgk@troutmask.apl.washington.edu Subject: Re: 7+ days of dogfood In-Reply-To: <20130210190048.GA77774@troutmask.apl.washington.edu> Cc: freebsd-current@freebsd.org, bsam@passap.ru X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 10:31:33 -0000 From sgk@troutmask.apl.washington.edu Sun Feb 10 19:06:10 2013 On Sun, Feb 10, 2013 at 06:51:23PM +0000, Anton Shterenlikht wrote: > Date: Sun, 10 Feb 2013 08:44:24 -0800 > From: Steve Kargl > To: Boris Samorodov > Subject: Re: 7+ days of dogfood > > > > FFLAGS = -O2 -pipe -march=native -mtune=native > > > > I don't like using "=" for FLAGS at make.conf... > > > > > FFLAGS+= -funroll-loops -ftree-vectorize > > > > ... as well as defaults overriding. > > > > FFLAGS are the options used while compiling Fortran. Having > spent years contributing to and testing gfortran, I am fairly > comfortable with these options. > > Do you recommend these FFLAGS settings to all > users of gfortran (via lang/gcc4x)? > Yes. > For example, I use blas, lapack, slatec, atlas, etc. > Should I use these FFLAGS too? Without knowing what options you currently use, I cannot make a concrete recommendation other than I've extensive tested the above options with my own codes and the Polyhedron testsuite. Oh, I do recommend that one should avoid -ffast-math (unless one really understands what it actually does). You probably don't care, as you don't use ia64, but just for the record, on ia64 r244834 with # cat /etc/make.conf|grep FFLAGS FFLAGS = -O2 -pipe -march=native -mtune=native FFLAGS+= -funroll-loops -ftree-vectorize # I get building lapack: gfortran47 -O2 -pipe -march=native -mtune=native -funroll-loops -ftree-vectorize -pg -c slatms.f -o slatms.o gfortran47: error: unrecognized command line option '-march=native' gfortran47: error: unrecognized argument in option '-mtune=native' gfortran47: note: valid arguments to '-mtune=' are: itanium2 mckinley This box is CPU: Madison (1500 MHz Itanium 2) so I guess I can try "-mtune=itanium2" and probably have to drop "-march" completely. Anyway, thank you for the recommendation. Anton -- Steve