Skip to content

Conversation

@jhendersonHDF
Copy link
Collaborator

@jhendersonHDF jhendersonHDF commented Sep 26, 2025

Adds predefined datatypes for FP8 data in E4M3 and E5M2 formats

Does not add support for any native FP8 types; datatype conversions are performed in software


Important

Add predefined datatypes for FP8 formats (E4M3 and E5M2) to HDF5, with software-based conversions and updated tests and documentation.

  • Behavior:
    • Adds predefined datatypes H5T_FLOAT_F8E4M3 and H5T_FLOAT_F8E5M2 for FP8 formats in H5Tpublic.h.
    • Updates H5T.c to initialize these new FP8 datatypes.
    • Modifies h5tools_type.c and h5util.c to handle FP8 datatype conversions.
    • Updates HDF5Constants.java to include new FP8 datatypes.
  • Tests:
    • Adds test cases for FP8 datatypes in test_lite.c, dt_arith.c, dtypes.c, and ntypes.c.
    • Updates h5dumpgentest.c to generate test files for FP8 datatypes.
  • Documentation:
    • Updates CHANGELOG.md to mention known issues with FP8 datatype conversions.
    • Adds comments in H5Tpublic.h regarding the limitations of FP8 datatype conversions.

This description was created by Ellipsis for 0523b99. You can customize this summary. It will automatically update as commits are pushed.

@jhendersonHDF jhendersonHDF added Component - C Library Core C library issues (usually in the src directory) Component - Tools Command-line tools like h5dump, includes high-level tools Component - Documentation Doxygen, markdown, etc. Component - Wrappers C++, Java & Fortran wrappers labels Sep 26, 2025
@jhendersonHDF jhendersonHDF added the Component - Testing Code in test or testpar directories, GitHub workflows label Sep 26, 2025
@github-project-automation github-project-automation bot moved this to To be triaged in HDF5 - TRIAGE & TRACK Sep 26, 2025
@jhendersonHDF jhendersonHDF linked an issue Sep 26, 2025 that may be closed by this pull request
@jhendersonHDF jhendersonHDF force-pushed the feature/fp8_formats_predefined branch 2 times, most recently from d0e8532 to 0523b99 Compare October 23, 2025 21:44
Adds predefined datatypes for FP8 data in E4M3 and E5M2 formats

Does not add support for any native FP8 types; datatype conversions are performed in software
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component - C Library Core C library issues (usually in the src directory) Component - Documentation Doxygen, markdown, etc. Component - Testing Code in test or testpar directories, GitHub workflows Component - Tools Command-line tools like h5dump, includes high-level tools Component - Wrappers C++, Java & Fortran wrappers

Projects

Status: To be triaged

Development

Successfully merging this pull request may close these issues.

Add predefined datatypes for FP8 (both E4M3 and E5M2)

4 participants