Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create generic floating-point wrapping type for <NumExponentBits, NumMantissaBits> #1665

Open
5 tasks
Tracked by #31
jrhemstad opened this issue Apr 24, 2024 · 0 comments
Open
5 tasks
Tracked by #31

Comments

@jrhemstad
Copy link
Collaborator

jrhemstad commented Apr 24, 2024

All the different extended floating point types like __half, bfloat, fp8, fp4, fp6, etc. are basically just a collection of N bits where M bits are dedicated to mantissa, E bits to exponent.

We can lean into this idea by creating an overarching type that is just:

floating_point<NumMantissaBits, NumExponentBits>

this would dispatch to corresponding built-in or accelerated types for the appropriate number of bits.

Tasks

  1. griwes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant