Comments (2)
Thanks for the question, Nicolas.
Is there a particular use for round-to-odd conversion targeting BF16?
As I understand it, round to odd is used for an intermediate conversion, when the ultimate goal is to round to an even smaller format. Since we don't have a smaller format, it doesn't seem like we need a round-to-odd flavor when converting to BF16.
This is further clarified by the following non-normative text from the RVV spec:
A full set of floating-point narrowing conversions is not supported as single instructions. Conversions can be implemented in a sequence of halving steps. Results are equivalently rounded and the same exception flags are raised if all but the last halving step use round-towards-odd (vfncvt.rod.f.f.w). Only the final step should use the desired rounding mode.
from riscv-bfloat16.
Is there a particular use for round-to-odd conversion targeting BF16?
I did not have a particular example in mind and you explanation makes me think there might not be one (I cannot think of a use-case FP32 -> BF16 -> FP8 where someone would want to avoid double-rounding issue through intermediary use of round-to-odd and as you said FP8 is not even a legal format yet).
I am going to ask around to user more familiar with this matter.
from riscv-bfloat16.
Related Issues (20)
- Are full instruction encodings available somewhere? HOT 3
- Should conversions to BFLOAT16 signal Underflow? HOT 4
- Do vfwmaccbf16 and vfwmulbf16 require SEW=16? HOT 5
- Vector instructions have no RM field HOT 1
- use of FLH and FSH for BF 16 memory load / store HOT 2
- Adding BFloat16 to the psABI doc HOT 3
- Zfbfinxmin extension? HOT 5
- S.B16 field HOT 2
- fcvt.bf16.s encoding collides with fround.h from zfa HOT 12
- Is dynamic rounding mode supported for FCVT.BF16.S and FCVT.S.BF16? HOT 2
- vfwmaccbf16 argument order inconsistent with similar base vector instructions HOT 2
- Encoding conflict with Zfa extension HOT 1
- Dependencies of vector bfloat16 extensions could be clearer HOT 3
- vfwmaccbf16 encoding between pdf and source code is different HOT 6
- typo on page 6 HOT 1
- Subnormal flushing HOT 3
- Rounding mode HOT 1
- Question on "Obligatory" table naming HOT 1
- Why does Zvfbfmin depend on Zfbfmin HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from riscv-bfloat16.