Repository navigation
Fix libdevice iree_f2h_ieee conversion - #20248
Merged
Merged
Conversation
Signed-off-by: Benoit Jacob <[email protected]>
Signed-off-by: Benoit Jacob <[email protected]>
benvanik
approved these changes
Mar 14, 2025
Signed-off-by: Benoit Jacob <[email protected]>
bjacob
enabled auto-merge (squash)
March 14, 2025 19:24
pxanthopoulos
pushed a commit
to pxanthopoulos/iree
that referenced
this pull request
Mar 17, 2025
This replaces the implementation with a specialized copy of the code we have in base/internal/math.h. This also adds an extensive test, so that we can feel better about this code which isn't shared with anything else (being libdevice) and is relatively little used, being used only with workloads involving the CPU-hostile f16 type, and only on CPU targets lacking native f16-f32 conversion instructions, which is generally only `generic` CPU targets as contemporary CPUs tend to have native instructions for these f16-f32 (F16C extension on x86) even though they lack native f16 *arithmetic* beyond these conversions. Fixes iree-org#20163. --------- Signed-off-by: Benoit Jacob <[email protected]>
Eliasj42
pushed a commit
that referenced
this pull request
Mar 24, 2025
This replaces the implementation with a specialized copy of the code we have in base/internal/math.h. This also adds an extensive test, so that we can feel better about this code which isn't shared with anything else (being libdevice) and is relatively little used, being used only with workloads involving the CPU-hostile f16 type, and only on CPU targets lacking native f16-f32 conversion instructions, which is generally only `generic` CPU targets as contemporary CPUs tend to have native instructions for these f16-f32 (F16C extension on x86) even though they lack native f16 *arithmetic* beyond these conversions. Fixes #20163. --------- Signed-off-by: Benoit Jacob <[email protected]> Signed-off-by: Elias Joseph <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
This replaces the implementation with a specialized copy of the code we have in base/internal/math.h. This also adds an extensive test, so that we can feel better about this code which isn't shared with anything else (being libdevice) and is relatively little used, being used only with workloads involving the CPU-hostile f16 type, and only on CPU targets lacking native f16-f32 conversion instructions, which is generally only `generic` CPU targets as contemporary CPUs tend to have native instructions for these f16-f32 (F16C extension on x86) even though they lack native f16 *arithmetic* beyond these conversions. Fixes #20163. --------- Signed-off-by: Benoit Jacob <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This replaces the implementation with a specialized copy of the code we have in base/internal/math.h.
This also adds an extensive test, so that we can feel better about this code which isn't shared with anything else (being libdevice) and is relatively little used, being used only with workloads involving the CPU-hostile f16 type, and only on CPU targets lacking native f16-f32 conversion instructions, which is generally only
genericCPU targets as contemporary CPUs tend to have native instructions for these f16-f32 (F16C extension on x86) even though they lack native f16 arithmetic beyond these conversions.Fixes #20163.