From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id 6321F3858C56 for ; Mon, 16 May 2022 10:50:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6321F3858C56 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.91,229,1647331200"; d="scan'208";a="78576122" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 16 May 2022 02:50:39 -0800 IronPort-SDR: jq23FxDovg810ZIkzyECjOGDwGQKfbWN738bCeLINRUxL8WYleEY5fOVF2B71rTr9bb43Ku122 kNsB5hMAINARR6hpORUvMeHM3YuFBlZlY6jkskPfNe8ClJ7yG62NmtnxAR//ZDfFe3qraWkHxT pLXTeP22Ms3yfOAg6S/mQ44O6GqxOdYNVUrKIM5uuJWRS1LahGgpqXNarwxy28vJ38cFUYKuLx 7fYHN3T/RHowI97bkmXtTDxPcrXfUBMyvk9EjyPcT7CIUAhuWO/Nn1amAgcIQVwYoM7rn5YNVF oig= Message-ID: <82eabaad-a325-d061-023c-dc97e31b6e5f@mentor.com> Date: Mon, 16 May 2022 12:50:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Fwd: gfortran fp16 Content-Language: en-US To: Toon Moene , CC: References: <13b127cf.c856.180cb531986.Coremail.cglwdm@scu.edu.cn> <114670e5-0fc5-a52b-5b10-627ee7c6e92d@moene.org> From: Tobias Burnus In-Reply-To: <114670e5-0fc5-a52b-5b10-627ee7c6e92d@moene.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_NUMSUBJECT, KAM_SHORT, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2022 10:50:41 -0000 On 16.05.22 09:51, Toon Moene wrote: > Interesting question. We don't do that yet, as far as I know. > -------- Forwarded Message -------- > From: =E9=99=88=E5=88=9A > > I want to use fp16 in fortran, does gfortran support the fp16? I think adding fp16 to the compiler itself is not that difficult =E2=80=93 = it is "just" handling 'HF' mode via 'REAL(kind=3D2)'; this can be done rather quickly. @=E9=99=88=E5=88=9A: If you want to volunteer to add it (know someone who d= oes), I can give some pointers.* Additionally support in the libgfortran run-time library should be added and some testcases written to ensure it works. =E2=80=93 I think that is al= so a smaller task, but has to be done in addition. Tobias *See https://gcc.gnu.org/contribute.html for a starter =E2=80=93 but if interested, I will give explicit hints what needs to be changed how. ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955