From owner-freebsd-fortran@freebsd.org Mon Nov 16 17:02:34 2015 Return-Path: Delivered-To: freebsd-fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA666A30887 for ; Mon, 16 Nov 2015 17:02:34 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A02E6132F for ; Mon, 16 Nov 2015 17:02:34 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mailman.ysv.freebsd.org (Postfix) id 9BBACA30886; Mon, 16 Nov 2015 17:02:34 +0000 (UTC) Delivered-To: fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81549A30885 for ; Mon, 16 Nov 2015 17:02:34 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A4C1132C for ; Mon, 16 Nov 2015 17:02:33 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by wmec201 with SMTP id c201so187120658wme.0 for ; Mon, 16 Nov 2015 09:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris_ac_uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:reply-to:in-reply-to; bh=JyrCMi9ZQQEJJKrY2XDV4pXJObi589uVnIlIpNL69Tc=; b=NoUCM89QsZCpSPIfbm7kco2IUuy1bx7YjoUdJMI3QbxniWwUDHIKUEzGs4VHuBTBuw ONyZB2keMpX3ZhHwigGzpdkb+2hEgBgT6KwVYtoI/SiSp8A+SA8CYjz3pvGDwGi+g5GK XTDlejgQsfb5fW1/dhFnoCgOcOdnhVZoXFSlaax3RFQZ/rlpuMAizlfj/fNpBFc6vH8m 8xRzaVzLXvkFgJhKQy/1vqi0nRm5MxFkrINRFaO2G5zszFUUIdDf21KvFSKgUnrW9N+Y fcBYY2KcTwhxfn2EMVqXEhvJ9yTmitjuRxlkQeDbFb7pjbhrPYv2T3VhRWofqYO/NC9G AhrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to :in-reply-to; bh=JyrCMi9ZQQEJJKrY2XDV4pXJObi589uVnIlIpNL69Tc=; b=F2E5PQqX6xAD/WzndC3vVJpBHZEDEn3kzZGXc881gJBvhctNCOYkmJ9nebwqdpzG6H CDN0nZg3aM0rLV6QSCmxtrQSCitRA66HBMw+bSgGvCK83msAM42QZJdiSWjncan16VBe f1uaPE/HnMZdnmbt15kj3nrKF2G7AZ5nZn5+ZefQRAGC+CqJzPl4fxSNJaG+bUfecVOq vcJIbeO3zlcVNLVCYoL/6cpkEXov3O1R9YNAUSJLYeBOqcPvViugnn/AjTP2Hpo17i+q fUiHwZ9HZgnaBQVtsPpafJT9GrsDglOpIAsVnWlPH7X6HurolF8qFMiCsV9Jsab26vPh 6P7Q== X-Gm-Message-State: ALoCoQlvlxprbsSDQvOF7POwEW383e9u/Y10nUp9/uvBUXTzjAluKiNkjRTCA3c1/zBnt15wrjUQ X-Received: by 10.28.180.9 with SMTP id d9mr21380368wmf.62.1447693352060; Mon, 16 Nov 2015 09:02:32 -0800 (PST) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id it4sm35500857wjb.0.2015.11.16.09.02.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 09:02:31 -0800 (PST) Date: Mon, 16 Nov 2015 09:02:31 -0800 (PST) X-Google-Original-Date: Mon, 16 Nov 2015 17:02:30 GMT Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id tAGH2UYv084731; Mon, 16 Nov 2015 17:02:30 GMT (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id tAGH2UUB084730; Mon, 16 Nov 2015 17:02:30 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201511161702.tAGH2UUB084730@mech-as222.men.bris.ac.uk> To: fortran@freebsd.org, gerald@pfeifer.com, mexas@bris.ac.uk, tijl@FreeBSD.org Subject: Re: advice on gfortran options for a port Reply-To: mexas@bris.ac.uk In-Reply-To: X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2015 17:02:35 -0000 I built gcc6 with graphite. I then built math/math77 with -floop-interchange -floop-strip-mine -floop-block simply with FC=gfortran6. What is the correct way of changing the compiler? The tests seem to run, but is there any difference... well, this will need more time. I don't use math/math77 at present, so will not be doing the thorough check. However, what is the best way to allow building with the default compiler with no graphite optimisation options, and optinally with gcc6 with graphite, with the above optimisations? Finally, the info page for gcc6 has: -ftree-loop-linear -floop-interchange -floop-strip-mine -floop-block -floop-unroll-and-jam Perform loop nest optimizations. Same as -floop-nest-optimize. To use this code transformation, GCC has to be configured with --with-isl to enable the Graphite loop transformation infrastructure. This is not very clear. Does it mean that all 5 mentioned options are equivalent to the single option -floop-nest-optimize? So is there a more detailed description of each of these options? Thanks Anton