From: GT <tnggil@protonmail.com>
To: Szabolcs Nagy <Szabolcs.Nagy@arm.com>
Cc: "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>, nd <nd@arm.com>,
Bill Schmidt <wschmidt@linux.ibm.com>
Subject: Re: PPC64 libmvec implementation of sincos
Date: Mon, 30 Sep 2019 17:30:00 -0000 [thread overview]
Message-ID: <eNSn9ItH_lJsl2SsT7WTQdL9l2fQOl9yKq1jlJDF7i5FPDIYek597sdux59ac4Q3BtsdmmRegWmHB1q3UqytjynWBDY9bsKcB1-Ti130j98=@protonmail.com> (raw)
In-Reply-To: <0728c06a-d506-e8e8-c4a5-9187a7047f5f@arm.com>
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, September 30, 2019 9:52 AM, Szabolcs Nagy <Szabolcs.Nagy@arm.com> wrote:
> On 27/09/2019 20:23, GT wrote:
>
> > I am attempting to create a vector version of sincos for PPC64.
> > The relevant discussion thread is on the GLIBC libc-alpha mailing list.
> > Navigate it beginning at https://sourceware.org/ml/libc-alpha/2019-09/msg00334.html
> > The intention is to reuse as much as possible from the existing GCC implementation of other libmvec functions.
> > My questions are: Which function(s) in GCC;
> >
> > 1. Gather scalar function input arguments, from multiple loop iterations, into a single vector input argument for the vector function version?
> > 2. Distribute scalar function outputs, to appropriate loop iteration result, from the single vector function output result?
> >
> > I am referring especially to vectorization of sin and cos.
>
> i wonder if gcc can auto-vectorize scalar sincos
> calls, the vectorizer seems to want the calls to
> have no side-effect, but attribute pure or const
> is not appropriate for sincos (which has no return
> value but takes writable pointer args)
1. Do you mean whether x86_64 already does auto-vectorize sincos?
2. Where in the code do you see the vectorizer require no side-effect?
> "#pragma omp simd" on a loop seems to work but i
> could not get unannotated sincos loops to vectorize.
>
> it seems it would be nice if we could add pure/const
> somehow (maybe to the simd variant only? afaik openmp
> requires no sideeffects for simd variants, but that's
> probably only for explicitly marked loops?)
1. Example 1 and Example 2 at https://sourceware.org/glibc/wiki/libmvec show the 2 different
ways to activate auto-vectorization. When you refer to "unannotated sincos", which of
the 2 techniques do you mean?
2. Which function was auto-vectorized by "pragma omp simd" in the loop?
next prev parent reply other threads:[~2019-09-30 17:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-27 19:23 GT
2019-09-30 13:53 ` Szabolcs Nagy
2019-09-30 17:30 ` GT [this message]
2019-09-30 18:07 ` Szabolcs Nagy
2019-09-30 18:09 ` Richard Biener
2019-11-25 16:53 ` GT
2019-11-27 8:19 ` Richard Biener
2019-12-04 20:53 ` GT
2019-12-05 9:44 ` Richard Biener
2019-12-05 17:46 ` GT
2019-12-06 10:48 ` Richard Biener
2019-12-06 11:15 ` Jakub Jelinek
2019-12-06 11:39 ` Richard Biener
2019-12-06 16:50 ` GT
2019-12-06 17:43 ` Richard Biener
2019-12-08 21:40 ` GT
2019-12-09 8:40 ` Richard Biener
2019-12-09 17:36 ` GT
2019-12-11 17:17 ` GT
2019-12-18 16:50 ` GT
2019-12-28 20:01 ` GT
2020-01-09 13:43 ` Richard Biener
2020-01-16 11:40 ` GT
2020-01-17 8:17 ` GT
2020-01-17 16:37 ` Richard Biener
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='eNSn9ItH_lJsl2SsT7WTQdL9l2fQOl9yKq1jlJDF7i5FPDIYek597sdux59ac4Q3BtsdmmRegWmHB1q3UqytjynWBDY9bsKcB1-Ti130j98=@protonmail.com' \
--to=tnggil@protonmail.com \
--cc=Szabolcs.Nagy@arm.com \
--cc=gcc@gcc.gnu.org \
--cc=nd@arm.com \
--cc=wschmidt@linux.ibm.com \
/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).