Skip to content

[bugfix] re-aligning subjfloat_functions with standardFunctionInfos when BFLOAT16 undefined#19

Open
nibrunieAtSi5 wants to merge 1 commit into
ucb-bar:masterfrom
nibrunieAtSi5:patch-1
Open

[bugfix] re-aligning subjfloat_functions with standardFunctionInfos when BFLOAT16 undefined#19
nibrunieAtSi5 wants to merge 1 commit into
ucb-bar:masterfrom
nibrunieAtSi5:patch-1

Conversation

@nibrunieAtSi5
Copy link
Copy Markdown
Contributor

@nibrunieAtSi5 nibrunieAtSi5 commented Jun 26, 2025

Work in progress

standardFunctionInfos uses #ifdef BFLOAT16 to guard the addition of 2 entries from bf16 to/from f32 conversions, while subjfloat_functions array did not, this could lead to a misalignment depending on the build configuration.

This could have been introduced in b205774, to fix another issue (or maybe I am misinterpreting the issue)

IMHO, It would be good to switch to a single array structure to avoid the possibility of creating discrepancies between the two (and also having to manually enforce ordering).

…16 undefined

standardFunctionInfos uses #ifdef BFLOAT16 to guard the addition of 2 entries from bf16 to/from f32 conversions, while subjfloat_functions array did not, this could lead to a misalignment depending on the build configuration.
@nibrunieAtSi5 nibrunieAtSi5 changed the title re-aligning subfloat_functions with standardFunctionInfos when BFLOAT16 undefined [bugfix] re-aligning subfloat_functions with standardFunctionInfos when BFLOAT16 undefined Jun 26, 2025
@nibrunieAtSi5 nibrunieAtSi5 changed the title [bugfix] re-aligning subfloat_functions with standardFunctionInfos when BFLOAT16 undefined [bugfix] re-aligning subjfloat_functions with standardFunctionInfos when BFLOAT16 undefined Jun 26, 2025
@nibrunieAtSi5 nibrunieAtSi5 marked this pull request as ready for review November 5, 2025 04:09
@nibrunieAtSi5
Copy link
Copy Markdown
Contributor Author

@jerryz123, would you mind taking a look ? I believe a patch like this one is similar to fix testfloat when the BFLOAT16 is not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants