NVIDIA / NVIDIA/cccl

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

Open
#1,665 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

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
```
this would dispatch to corresponding built-in or accelerated types for the appropriate number of bits.

### Tasks
- [ ] https://github.com/NVIDIA/cccl/issues/1666
- [ ] https://github.com/NVIDIA/cccl/issues/2181
- [ ] https://github.com/NVIDIA/cccl/issues/2182

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.