GNU bug report logs - #68871
Can't use od to print half-precision floats

Previous Next

Package: coreutils;

Reported by: "Rozenberg, Eyal (Consultant)" <Eyal.Rozenberg <at> gehealthcare.com>

Date: Thu, 1 Feb 2024 14:28:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Rozenberg, Eyal (Consultant)" <Eyal.Rozenberg <at> gehealthcare.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>, Pádraig Brady <P <at> draigBrady.com>, "68871 <at> debbugs.gnu.org" <68871 <at> debbugs.gnu.org>
Subject: bug#68871: Can't use od to print half-precision floats
Date: Fri, 2 Feb 2024 14:35:31 +0000
Seems ok to me as a user. Note also that there is the TF32 format (tf for tensor-float), which takes up 32 bits, but only uses 19. So, the switches could be:

-t f2    IEEE half
-t fh    IEEE half
-t fb    brain
-t ft     tensor

or

-t ft4  tensor

(which indicates the 32-bitness)

Eyal

-----Original Message-----
From: Paul Eggert <eggert <at> cs.ucla.edu> 
Sent: Friday, 2 February 2024 3:47
To: Pádraig Brady <P <at> draigBrady.com>; Rozenberg, Eyal (Consultant) <Eyal.Rozenberg <at> gehealthcare.com>; 68871 <at> debbugs.gnu.org
Subject: Re: bug#68871: Can't use od to print half-precision floats

WARNING: This email originated from outside of GE HealthCare. Please validate the sender's email address before clicking on links or attachments as they may not be safe.

On 2/1/24 13:59, Pádraig Brady wrote:
>
> bfloat16 looks like a truncated single precision IEEE, so we should be 
> able to just pad the extra 16 bits with zeros when converting to 
> single precision internally for processing.

Sounds good. This would mean od could work even the platform doesn't support bfloat16_t, since od.c could fall back on the above code (though I suppose it could be endianness-dependent).

This bug report was last modified 1 year and 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.