From: "Dominique d'Humières" <dominiq@lps.ens.fr>
To: jdelia@intec.unl.edu.ar
Cc: fortran@gcc.gnu.org
Subject: Re: Can be a subroutine slower when is placed in a module?
Date: Sat, 20 Feb 2016 13:19:00 -0000 [thread overview]
Message-ID: <203F0893-2924-4F5A-935F-725204DCA066@lps.ens.fr> (raw)
You should give the options you use. If I compile your code using a module with '-Ofast -fwhole-program’ I get the same speed as for the other two tests compiled with '-Ofast’ only. IMO this is related to inlining the routine(s).
Dominique
next reply other threads:[~2016-02-20 13:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-20 13:19 Dominique d'Humières [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-02 13:04 GCC 6.0 and x86_64 with Fedora 22: [xg++] Error 1 Jorge D'Elia
2016-02-19 21:21 ` Can be a subroutine slower when is placed in a module? Jorge D'Elia
2016-02-20 5:48 ` Thomas Koenig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=203F0893-2924-4F5A-935F-725204DCA066@lps.ens.fr \
--to=dominiq@lps.ens.fr \
--cc=fortran@gcc.gnu.org \
--cc=jdelia@intec.unl.edu.ar \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).