From: "Thomas König" <tk@tkoenig.net>
To: Tobias Burnus <Tobias_Burnus@mentor.com>
Cc: Toon Moene <toon@moene.org>, cglwdm@scu.edu.cn, fortran@gcc.gnu.org
Subject: Re: gfortran fp16
Date: Tue, 17 May 2022 12:09:04 +0200 [thread overview]
Message-ID: <836D64F9-FA54-4DB3-BC12-2FA5464EA5EB@tkoenig.net> (raw)
In-Reply-To: <82eabaad-a325-d061-023c-dc97e31b6e5f@mentor.com>
Hi,
be might complement to the QP support for POWER in gcc 12, and I have actually thought about doing. The library has its gotchas, though - I do not suppose we can count on fp16 support for trigonometrics and similar, for example, so we would probably have to use fp32 and convert (or imlement a lookup table, which would be cache-unfriendly) Plus, there appears to be more than one format on ARM, but we should probably restrict ourselves to IEEE.
So, not a really small project, but an interesting one.
Best regards
Thomas
> Am 16.05.2022 um 12: 50 schrieb Tobias Burnus <Tobias_Burnus@mentor.com>:
> On 16.05.22 09:51, nkToon Moene wrote:
>> Interesting question. We don't do that yet, as far as I know.
>> -------- Forwarded Message --------
>> From: 陈刚 <cglwdm@scu.edu.cn>
>>
>> I want to use fp16 in fortran, does gfortran support the fp16?
>
> I think adding fp16 to the compiler itself is not that difficult – it is
> "just" handling 'HF' mode via 'REAL(kind=2)'; this can be done rather
> quickly.
>
> @陈刚: If you want to volunteer to add it (know someone who does), I can
> give some pointers.*
>
> Additionally support in the libgfortran run-time library should be added
> and some testcases written to ensure it works. – I think that is also a
> smaller task, but has to be done in addition.
>
> Tobias
>
> *See https://gcc.gnu.org/contribute.html for a starter – but if
> interested, I will give explicit hints what needs to be changed how.
>
>
> -----------------
> Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
next prev parent reply other threads:[~2022-05-17 10:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <13b127cf.c856.180cb531986.Coremail.cglwdm@scu.edu.cn>
2022-05-16 7:51 ` Fwd: " Toon Moene
2022-05-16 10:50 ` Tobias Burnus
2022-05-17 10:09 ` Thomas König [this message]
2022-05-17 10:26 ` Tobias Burnus
2022-05-17 18:33 ` James Cloos
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=836D64F9-FA54-4DB3-BC12-2FA5464EA5EB@tkoenig.net \
--to=tk@tkoenig.net \
--cc=Tobias_Burnus@mentor.com \
--cc=cglwdm@scu.edu.cn \
--cc=fortran@gcc.gnu.org \
--cc=toon@moene.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).