From: Jerry DeLisle <jvdelisle@charter.net>
To: Thomas Koenig <tkoenig@netcologne.de>,
gcc-patches <gcc-patches@gcc.gnu.org>,
"fortran@gcc.gnu.org" <fortran@gcc.gnu.org>
Subject: Re: [patch, fortran] Also use size estimate for vector-matrix matmul
Date: Fri, 19 Mar 2021 12:49:58 -0700 [thread overview]
Message-ID: <1273b3de-e65b-b5fa-9c73-6cc515e28989@charter.net> (raw)
In-Reply-To: <01315155-a238-c1ff-c08a-b0319422f001@netcologne.de>
Yes Ok for trunk.
Thanks much!
On 3/19/21 10:37 AM, Thomas Koenig via Fortran wrote:
> Hell world,
>
> here is the patch I talked about earlier. It passes regression testing.
>
> OK for trunk?
>
> Best regards
>
> Thomas
>
> Add size check to vector-matrix matmul.
>
> It turns out the library version is much faster for vector-matrix
> multiplications for large sizes than what inlining can produce.
> Use size checks for switching between this and inlining for
> that case to.
>
> gcc/fortran/ChangeLog:
>
> * frontend-passes.c (inline_limit_check): Add rank_a
> argument. If a is rank 1, set the second dimension to 1.
> (inline_matmul_assign): Pass rank_a argument to inline_limit_check.
> (call_external_blas): Likewise.
>
> gcc/testsuite/ChangeLog:
>
> * gfortran.dg/inline_matmul_6.f90: Adjust count for _gfortran_matmul.
next prev parent reply other threads:[~2021-03-19 19:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-19 17:37 Thomas Koenig
2021-03-19 19:49 ` Jerry DeLisle [this message]
2021-03-20 9:57 ` 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=1273b3de-e65b-b5fa-9c73-6cc515e28989@charter.net \
--to=jvdelisle@charter.net \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=tkoenig@netcologne.de \
/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).