public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Sunil Pandey <skpgkp2@gmail.com>
To: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Cc: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH] math: Add more input to atanh accuracy tests
Date: Wed, 23 Feb 2022 19:32:39 -0800	[thread overview]
Message-ID: <CAMAf5_dYi8sNRHhZx_9dC7e-4SPbM8OQEcbGPNwo4NkA-q8Y1Q@mail.gmail.com> (raw)
In-Reply-To: <mwzgmnzer8.fsf@tomate.loria.fr>

On Fri, Feb 18, 2022 at 8:01 PM Paul Zimmermann
<Paul.Zimmermann@inria.fr> wrote:
>
>        Dear Sunil,
>
> here is what I get with glibc master (b98d0bb):
>
> $ LIBMVEC=512 GLIBC=glibc ./doit.libmvec atanh
> LIBMVEC=512 -mavx512f
> 00000000004148f0 T mpfr_atanh
> 0000000000401668 t mpfr_atanh.cold
>                  U _ZGVeN16v_atanhf@GLIBC_2.35
> Checking atanh with libmvec from glibc and rndn
> Sat 19 Feb 2022 04:48:53 AM CET
> MPFR library: 4.1.0
> MPFR header:  4.1.0 (based on 4.1.0)
> Checking function atanhf with MPFR_RNDN
> libm wrong by up to 1.45e+00 ulp(s) [1] for x=0x1.f2100ap-9
> atanh      gives 0x1.f210aap-9
> mpfr_atanh gives 0x1.f210a8p-9
> Total: errors=58600734 (1.37%) errors2=0 maxerr=1.45e+00 ulp(s)
>
> The maximal error is still 1.45 ulps.
>
> Anyway, I guess the comment in auto-libm-test-in should say this is for
> libmvec, and with -avx512.

Comment fixed in v2.

>
> Paul
>
> > From: Sunil Pandey <skpgkp2@gmail.com>
> > Date: Wed, 16 Feb 2022 10:40:06 -0800
> > Cc: GNU C Library <libc-alpha@sourceware.org>
> >
> > Hi Paul,
> >
> > I got an optimization patch for function _ZGVeN16v_atanhf_skx. As a result of
> > optimization, ulps for(input 0x1.f80094p-8)  jumped from ~1.4 to ~2.4 and none
> > of the existing glibc atanh input catches it.
> >
> > Currently at glibc master I am getting the following result.
> >
> > Test: atanh_vlen16 (0x1.f80094p-8)
> > Result: 0x1.f80322p-8
> >
> > I also tried input 0x1.ec2dd8p-4 but it doesn't catch the optimization accuracy
> > error jump for the proposed patch.
> >
> > Thanks,
> > Sunil
> >
> >
> > On Tue, Feb 15, 2022 at 11:43 PM Paul Zimmermann
> > <Paul.Zimmermann@inria.fr> wrote:
> > >
> > >        Dear Sunil,
> > >
> > > > +# the next value generates larger error bounds on x86_64 (binary32)
> > > > +atanh 0x1.f80094p-8
> > >
> > > I only find a error of 0.598 ulp, whereas the largest error for binary32
> > > is obtained for 0x1.ec2dd8p-4 (1.73 ulp). More precisely for x=0x1.f80094p-8
> > > glibc 2.35 returns 0x1.f8031ep-8 (x86_64, skylake). Do you get a different value?
> > > Maybe you used different CFLAGS than the default ones?
> > >
> > > Best regards,
> > > Paul
> >

      parent reply	other threads:[~2022-02-24  3:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16  2:57 Sunil K Pandey
2022-02-16  7:43 ` Paul Zimmermann
2022-02-16 18:40   ` Sunil Pandey
2022-02-19  4:01     ` Paul Zimmermann
2022-02-24  0:04       ` [PATCH v2] " Sunil K Pandey
2022-02-24  9:37         ` Paul Zimmermann
2022-02-24 15:57           ` Sunil Pandey
2022-02-24 16:13             ` Paul Zimmermann
2022-02-24 16:31               ` Sunil Pandey
2022-02-24 16:38                 ` Paul Zimmermann
2022-02-24  3:32       ` Sunil Pandey [this message]

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=CAMAf5_dYi8sNRHhZx_9dC7e-4SPbM8OQEcbGPNwo4NkA-q8Y1Q@mail.gmail.com \
    --to=skpgkp2@gmail.com \
    --cc=Paul.Zimmermann@inria.fr \
    --cc=libc-alpha@sourceware.org \
    /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).