public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Johnston <jjohnstn@redhat.com>
To: Kwok Cheung Yeung <kcy@codesourcery.com>
Cc: newlib@sourceware.org
Subject: Re: [PATCH] amdgcn: Add vectorized math routines
Date: Mon, 12 Dec 2022 17:32:49 -0500	[thread overview]
Message-ID: <CAOox84uXzzMqxgKcsKNkk8T_DHbeLPnKCX---jcJ7qH0braoDg@mail.gmail.com> (raw)
In-Reply-To: <c2866ffe-4d6b-0b7a-4c27-4c58e7d0b75a@codesourcery.com>

[-- Attachment #1: Type: text/plain, Size: 1817 bytes --]

Hi Kwok,

You need to provide headers in all the source and include files.  Some
files mention they are based on an existing
newlib file.  Those files should copy the license header over and not just
have a reference (imagine if
someone were to delete the original file or rename it).  You are not
allowed to change the licensing
of a file you have based off of but you can add additional copyright info
for your additions if you wish.

As mentioned you need to add a license header for the new amdgcnmatch.h
header file that is used everywhere.

-- Jeff J.

On Fri, Dec 2, 2022 at 5:04 PM Kwok Cheung Yeung <kcy@codesourcery.com>
wrote:

> Hello
>
> This patch implements a set of vectorized math routines for use by the
> auto-vectorizer in GCC for the AMD GCN architecture. The implementation
> is located in libm/machine/amdgcn, and is based on the current set of
> scalar math routines in Newlib, from libm/common, libm/math and
> libm/mathfp (where the level of accuracy was deemed sufficient for our
> purposes). I have ensured that the copyright notices from the original
> were retained.
>
> The vectorized routines make extensive use of the GCC vector extensions
> for C, some GCN-specific builtins in GCC, and a SIMD abstraction library
> located in libm/machine/amdgcn/amdgcnmach.h. As the builtins are a
> recent addition to GCC, I have added #if statements to skip compilation
> of the routines that use them to ensure that Newlib will still build for
> older versions of GCC.
>
> Versions for 2-lane vectors up to 64-lane vectors (in powers of 2) are
> provided for all public functions. Versions with <64 lanes (which is the
> 'natural' vector width for AMD GCN) are shims that call the 64-lane
> version with the unused lanes masked out.
>
> Okay for inclusion into Newlib?
>
> Thanks
>
> Kwok Yeung

  reply	other threads:[~2022-12-12 22:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-02 22:02 Kwok Cheung Yeung
2022-12-12 22:32 ` Jeff Johnston [this message]
2023-01-17 12:34   ` Kwok Cheung Yeung
2023-01-17 19:52     ` Jeff Johnston
2023-01-18 17:04       ` Kwok Cheung Yeung
2023-01-18 18:37         ` Jeff Johnston

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=CAOox84uXzzMqxgKcsKNkk8T_DHbeLPnKCX---jcJ7qH0braoDg@mail.gmail.com \
    --to=jjohnstn@redhat.com \
    --cc=kcy@codesourcery.com \
    --cc=newlib@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).