From owner-freebsd-fortran@freebsd.org Sun Nov 15 19:43:28 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 6185EA30D2F for ; Sun, 15 Nov 2015 19:43:28 +0000 (UTC) (envelope-from gerald@pfeifer.com) 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 4AFF210BA for ; Sun, 15 Nov 2015 19:43:28 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: by mailman.ysv.freebsd.org (Postfix) id 47F57A30D2E; Sun, 15 Nov 2015 19:43:28 +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 46AD8A30D2D for ; Sun, 15 Nov 2015 19:43:28 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1CCE910B6; Sun, 15 Nov 2015 19:43:27 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from [192.168.0.130] (vie-188-118-240-003.dsl.sil.at [188.118.240.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id 9BDA13F44A; Sun, 15 Nov 2015 14:43:24 -0500 (EST) Date: Sun, 15 Nov 2015 20:43:21 +0100 (CET) From: Gerald Pfeifer To: Tijl Coosemans , Anton Shterenlikht , fortran@freebsd.org Subject: Re: advice on gfortran options for a port In-Reply-To: <20150729200307.5df26a3e@kalimero.tijl.coosemans.org> Message-ID: References: <201507270953.t6R9riEg096211@mech-as222.men.bris.ac.uk> <20150729200307.5df26a3e@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: Sun, 15 Nov 2015 19:43:28 -0000 Hi Tijl, hi Anton, On Wed, 29 Jul 2015, Tijl Coosemans wrote: >> Trying to build (with gfortran48 to gfortran6) I get: >> >> f951: sorry, unimplemented: Graphite loop optimizations cannot be used (ISL is not available)(-fgraphite, -fgraphite-identity, -floop-block, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, -floop-unroll-and-jam, and -ftree-loop-linear) >> >> Are these not implemented on BSD? >> I wonder how they build with GCC with these flags? >> >> Anyway, should I leave all these flags, and -ggdb in the port? >> Or should I use the default ports tree FFLAGS instead? > It seems that gcc needs to be configured with --with-isl to enable > Graphite. Gerald, can this be enabled in the gcc ports? I just committed a patch to lang/gcc6-devel that adds a new option GRAPHITE which enables support for Graphite loop optimizations and am looking into pushing this back into the gcc5-devel and later gcc5 ports. Since this pulls in libisl as an additional dependency and I have only seen two requests for this (including yours) so far, I'm a little hesitant to make enable this option by default. What do you think? (Patch below.) Gerald Modified: head/lang/gcc6-devel/Makefile ============================================================================== --- head/lang/gcc6-devel/Makefile Sun Nov 15 19:09:01 2015 (r401723) +++ head/lang/gcc6-devel/Makefile Sun Nov 15 19:37:49 2015 (r401724) @@ -42,7 +42,7 @@ SSP_UNSAFE= yes PATCH_WRKSRC= ${SRCDIR} CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure -OPTIONS_DEFINE= BOOTSTRAP +OPTIONS_DEFINE= BOOTSTRAP GRAPHITE OPTIONS_DEFINE_i386= JAVA OPTIONS_DEFINE_amd64= JAVA OPTIONS_DEFAULT= BOOTSTRAP @@ -50,6 +50,7 @@ OPTIONS_DEFAULT_i386= JAVA OPTIONS_DEFAULT_amd64= JAVA OPTIONS_EXCLUDE_DragonFly= JAVA BOOTSTRAP_DESC= Build using a full bootstrap +GRAPHITE_DESC= Support for Graphite loop optimizations .if exists(/usr/lib32/libc.so) OPTIONS_DEFINE_powerpc64= MULTILIB @@ -125,6 +126,11 @@ INFO+= gcc${SUFFIX}/libquadmath \ SUB_FILES= pkg-message SUB_LIST+= TARGLIB=${TARGLIB} +.if ${PORT_OPTIONS:MGRAPHITE} +LIB_DEPENDS+= libisl.so:${PORTSDIR}/devel/isl +CONFIGURE_ARGS+=--with-isl=${LOCALBASE} +.endif + .if ${PORT_OPTIONS:MJAVA} ECJ_JAR= ${LOCALBASE}/share/java/ecj-4.5.jar BUILD_DEPENDS+= ${ECJ_JAR}:${PORTSDIR}/lang/gcc-ecj45 \ From owner-freebsd-fortran@freebsd.org Sun Nov 15 21:15:58 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 84306A2F143 for ; Sun, 15 Nov 2015 21:15:58 +0000 (UTC) (envelope-from tijl@freebsd.org) 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 69EAE104C for ; Sun, 15 Nov 2015 21:15:58 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 67E05A2F142; Sun, 15 Nov 2015 21:15:58 +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 67788A2F141 for ; Sun, 15 Nov 2015 21:15:58 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay106.isp.belgacom.be (mailrelay106.isp.belgacom.be [195.238.20.133]) by mx1.freebsd.org (Postfix) with ESMTP id 06D30104B for ; Sun, 15 Nov 2015 21:15:57 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CSBgDF9EhW/zhosVtVCYM7gUK+XoFkhhACgSI7EgEBAQEBAQGBCoQ1AQEEOhwjEAsYCSUPKh4GE4gyAbhAAQEBAQEBBAEBAQEfi1KEMYUIBZZIjR9lm2goDC+EBT00hUsBAQE Received: from 56.104-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.104.56]) by relay.skynet.be with ESMTP; 15 Nov 2015 22:15:49 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id tAFLFlhv004834; Sun, 15 Nov 2015 22:15:48 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Sun, 15 Nov 2015 22:15:46 +0100 From: Tijl Coosemans To: Gerald Pfeifer Cc: Anton Shterenlikht , fortran@freebsd.org Subject: Re: advice on gfortran options for a port Message-ID: <20151115221546.35739522@kalimero.tijl.coosemans.org> In-Reply-To: References: <201507270953.t6R9riEg096211@mech-as222.men.bris.ac.uk> <20150729200307.5df26a3e@kalimero.tijl.coosemans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Sun, 15 Nov 2015 21:15:58 -0000 On Sun, 15 Nov 2015 20:43:21 +0100 (CET) Gerald Pfeifer wrote: > On Wed, 29 Jul 2015, Tijl Coosemans wrote: >>> Trying to build (with gfortran48 to gfortran6) I get: >>> >>> f951: sorry, unimplemented: Graphite loop optimizations cannot be used (ISL is not available)(-fgraphite, -fgraphite-identity, -floop-block, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, -floop-unroll-and-jam, and -ftree-loop-linear) >>> >>> Are these not implemented on BSD? >>> I wonder how they build with GCC with these flags? >>> >>> Anyway, should I leave all these flags, and -ggdb in the port? >>> Or should I use the default ports tree FFLAGS instead? >> It seems that gcc needs to be configured with --with-isl to enable >> Graphite. Gerald, can this be enabled in the gcc ports? > > I just committed a patch to lang/gcc6-devel that adds a new option > GRAPHITE which enables support for Graphite loop optimizations and > am looking into pushing this back into the gcc5-devel and later > gcc5 ports. > > Since this pulls in libisl as an additional dependency and I have > only seen two requests for this (including yours) so far, I'm a > little hesitant to make enable this option by default. > > What do you think? (Patch below.) If upstream disables it by default it's ok to keep the port option disabled by default too. From owner-freebsd-fortran@freebsd.org Mon Nov 16 11:15:04 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 08057A269AF for ; Mon, 16 Nov 2015 11:15:04 +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 CF88C1951 for ; Mon, 16 Nov 2015 11:15:03 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mailman.ysv.freebsd.org (Postfix) id CDE2DA269AE; Mon, 16 Nov 2015 11:15:03 +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 CC883A269AD for ; Mon, 16 Nov 2015 11:15:03 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 6CF39194F for ; Mon, 16 Nov 2015 11:15:03 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by wmww144 with SMTP id w144so105261489wmw.1 for ; Mon, 16 Nov 2015 03:15:02 -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=jCT9JsLlKpe2Jg9nMFJAzCBllllWUq6KGMVktJF46oc=; b=wcaPmZvA/oIqfkRVJGsMCmAbhIpxU0hJDRowv1yRDMYBdzgKNo1wgYIGOUdJRa+Ee7 FhTk7dealGS3ArRatJwXHIucqvenNtkqxTId9x7NWKwyN8yQC6tMPxX/ULxORQ4EL6kt 2wqQpeg5itx9jZZhBcqfBhkyNex7nwtXocEhLXZe6MzGs//gCCB4ueVWZfEE/nMPXGPl xBprZK+Px9e1qA8zLmd97Ww67KdRglGuCZ6/4DV6YNqmPN0aSL6TnzzeQWJr9CXXUcBw 7LHQ2F5jy/zwM7urXgN5fHHqKD7CU5OYKBUUtcuU+HUBvjOZhZrKcBVzcJ9HVWfGiAXM 0bvw== 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=jCT9JsLlKpe2Jg9nMFJAzCBllllWUq6KGMVktJF46oc=; b=ajibdbGf6GGxPQs7D5UySbnjxxObzGEo9HQMrxiyf2i3/dDHK+Jm8mg5RojN+f1sda LVyyRl3Ps0YLz+rOdPHsZbBN+098XuTn7y1Vvl3mWoyJsw/rvp4aw1YMwkaL+SmYO24f dA7CyepZ2Kwy1OEj4gYOTtAvXqAhyQD1e3+mJNJQ/cOXB0g4/1TlFOkMLcwf72vEJTnO 57YM92VHDv5iytGdLce6//wFv9YZTJYr73MzPmKboHv8TwffI5ipxcaWfMHXVN3YVJ2k LdaVDPnE1F11DKwvsJoS+41E2mkGsR+TFyfhk22b2S87z18Q+b/Eo3X0eEwenxRtUwM4 ldSA== X-Gm-Message-State: ALoCoQky6thWDin1gW4tTBkOuKnfDQ6LM8DJ1tX4c0PXV8U3SrT/+qNoNUCM7HhLkGOl4/O/ztr2 X-Received: by 10.28.218.72 with SMTP id r69mr19014824wmg.98.1447672501806; Mon, 16 Nov 2015 03:15:01 -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 q1sm34006101wjy.31.2015.11.16.03.15.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 03:15:00 -0800 (PST) Date: Mon, 16 Nov 2015 03:15:00 -0800 (PST) X-Google-Original-Date: Mon, 16 Nov 2015 11:14:59 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 tAGBF0k7083343; Mon, 16 Nov 2015 11:15:00 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 tAGBExSa083335; Mon, 16 Nov 2015 11:14:59 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201511161114.tAGBExSa083335@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 11:15:04 -0000 Gerald, I've forgotten what this was about. Was there a port that didn't build? If so, I'll give it a go. I also don't mind if this is not a default option. Anton From owner-freebsd-fortran@freebsd.org Mon Nov 16 11:30:20 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 53FF9A26B61 for ; Mon, 16 Nov 2015 11:30:20 +0000 (UTC) (envelope-from gerald@pfeifer.com) 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 3CEB31CBF for ; Mon, 16 Nov 2015 11:30:20 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: by mailman.ysv.freebsd.org (Postfix) id 3B8A3A26B60; Mon, 16 Nov 2015 11:30:20 +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 3A55CA26B5E for ; Mon, 16 Nov 2015 11:30:20 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0FF2E1CBD; Mon, 16 Nov 2015 11:30:19 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from [192.168.0.130] (vie-188-118-240-003.dsl.sil.at [188.118.240.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id 855043F444; Mon, 16 Nov 2015 06:30:11 -0500 (EST) Date: Mon, 16 Nov 2015 12:30:09 +0100 (CET) From: Gerald Pfeifer To: Anton Shterenlikht cc: fortran@freebsd.org, Tijl Coosemans Subject: Re: advice on gfortran options for a port In-Reply-To: <201511161114.tAGBExSa083335@mech-as222.men.bris.ac.uk> Message-ID: References: <201511161114.tAGBExSa083335@mech-as222.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 11:30:20 -0000 Hi Anton, On Mon, 16 Nov 2015, Anton Shterenlikht wrote: > Gerald, I've forgotten what this was about. > Was there a port that didn't build? > If so, I'll give it a go. > > I also don't mind if this is not a default option. you were interested in Graphite loop optimizations in GCC. If you check out `info gcc`, for example, you'll see which additional optimization options will be supported now. Gerald From owner-freebsd-fortran@freebsd.org Mon Nov 16 12:22:39 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 D17BAA2E19C for ; Mon, 16 Nov 2015 12:22:39 +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 A4A2D161B for ; Mon, 16 Nov 2015 12:22:39 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mailman.ysv.freebsd.org (Postfix) id A574BA2E19A; Mon, 16 Nov 2015 12:22:39 +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 A50FEA2E199 for ; Mon, 16 Nov 2015 12:22:39 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (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 31CDE1619 for ; Mon, 16 Nov 2015 12:22:39 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by wmec201 with SMTP id c201so117055777wme.1 for ; Mon, 16 Nov 2015 04:22:37 -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=b0nHk4oW2A7SJWc4iBwlEA5BWwWCNXz4n5WWM5bDufE=; b=WdQdvsy5KkY4WFeh9N8/eAMQnXaifmI/KdJdjc35bM6fJckQL1+EQCawIxVqVALED9 YiF/wmnU9t6EtwwzBZ1DopVlQndC0V/GhctYE9G+PMdsldK7f+gWozqSUvR1Eb+qxLKd 06EZV+jlzQAs5eoWCyMkVJ31MZLoJNHj0a2BcTPg03rmsqul1xf46J2dMwdzy51gfHSu DOCh9xR/V9NUaCtETVZJksUnN3GqCZJMhwmLNmxA3yha9lXQxa+IpUMmEryddIrbswPj 3pH9gLKJvEfqsxHiOk9RraJHMQ1haLqp8o7ZOdiBImr240hVQe5iggs37fE2ocEfcJEY An2g== 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=b0nHk4oW2A7SJWc4iBwlEA5BWwWCNXz4n5WWM5bDufE=; b=JxbU24Llxh60Z2PaQUAiRNjNsTFcmYi74pL7w5B1c5xAPscYwM1Bc7gwYIm6dBI/I4 wxgAUnGjk6w22rt+F7P6cFOYCu6A2Z6i9Ada4evlzsXsrf4m1InqZYOEquHkRGXPMExW J81KQ/N43N61JnentSnKDgG7uzr4M+inu/oPUJALXqB6CVAqaqnwrZAUGR/X072bTG/G /qeIqW1YKJIlBaKFC6TeK9Voe7EzSyX/4ifd33gJrMR0uiRJ8/Wk6z6FNqbGg+kmRlA8 JQXPUwi3XIF9W5kFLLE6UMseIYh4W1BELMfyMV0zpfUz563nj4EVCux6fogFnElW2sB1 ipTQ== X-Gm-Message-State: ALoCoQm6YTQ/7zbcb8+HAKh3vH3BHmwri3zGDBxm6OYzcyODbNeV3GO+w3CtJr6U+EFYl5X2h2hh X-Received: by 10.28.186.67 with SMTP id k64mr11533287wmf.56.1447676557700; Mon, 16 Nov 2015 04:22:37 -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 it4sm34339713wjb.0.2015.11.16.04.22.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 04:22:36 -0800 (PST) Date: Mon, 16 Nov 2015 04:22:36 -0800 (PST) X-Google-Original-Date: Mon, 16 Nov 2015 12:22:35 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 tAGCMZ77083612; Mon, 16 Nov 2015 12:22:35 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 tAGCMZxJ083611; Mon, 16 Nov 2015 12:22:35 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201511161222.tAGCMZxJ083611@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 12:22:40 -0000 oh, I remember now. This is about math/math77. The upstream had: -floop-interchange -floop-strip-mine -floop-block in flags, which I removed. After I've built gcc6 with graphite support, I'll try to rebuild math/math77 with upstream options. Gerald, thank you. Anton 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 From owner-freebsd-fortran@freebsd.org Mon Nov 16 19:56:45 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 C5662A30885 for ; Mon, 16 Nov 2015 19:56:45 +0000 (UTC) (envelope-from gerald@pfeifer.com) 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 AE5721144 for ; Mon, 16 Nov 2015 19:56:45 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: by mailman.ysv.freebsd.org (Postfix) id AE555A30884; Mon, 16 Nov 2015 19:56:45 +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 ADF3AA30883 for ; Mon, 16 Nov 2015 19:56:45 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 820651143; Mon, 16 Nov 2015 19:56:44 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from [10.168.81.162] (178.115.129.51.wireless.dyn.drei.com [178.115.129.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id B1C7F3F423; Mon, 16 Nov 2015 14:56:41 -0500 (EST) Date: Mon, 16 Nov 2015 20:56:38 +0100 (CET) From: Gerald Pfeifer To: Anton Shterenlikht cc: fortran@freebsd.org, Tijl Coosemans Subject: Re: advice on gfortran options for a port In-Reply-To: <201511161702.tAGH2UUB084730@mech-as222.men.bris.ac.uk> Message-ID: References: <201511161702.tAGH2UUB084730@mech-as222.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 19:56:45 -0000 On Mon, 16 Nov 2015, Anton Shterenlikht wrote: > 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? The general ports infrastructure does not easily support this. If you build locally, you could build gcc6-devel accordingly and add an option to the other port(s). > 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? This is a good question. Best check with gcc-help@gcc.gnu.org and copy Tobias Grosser and Sebastian Pop as two of the Graphite maintainers. > So is there a more detailed description of each of these options? I believe there used to be one in gcc5-devel. Interesting that this got lost in the newer version. Gerald