Skip to content

erts: Replace FP16 implementation with a new one #9735

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucioleKi
Copy link
Contributor

The new implementation has the same behavior as the previous one. The reason we are writing this new implementation is that the previous version is external and has an MIT license. If it gets a newer version, we need to upgrade it and keep it up to date. Because FP16 has a clear specification and is stand-alone, it is easier to just write our own implementation.

The newer compilers already have native support for FP16, so this implementation is only relevant for older compilers. For this reason, the new implementation has not been tested for speed.

@lucioleKi lucioleKi added the team:VM Assigned to OTP team VM label Apr 16, 2025
@lucioleKi lucioleKi requested review from bjorng and jhogberg April 16, 2025 11:32
@lucioleKi lucioleKi self-assigned this Apr 16, 2025
@garazdawi
Copy link
Contributor

Please also update vendor.info to not include fp16 anymore.

@lucioleKi lucioleKi force-pushed the isabell/erts/fp16_2 branch from 76f37b4 to cdbc277 Compare April 16, 2025 11:50
@kikofernandez
Copy link
Contributor

FP16 was thought to exists as a vendor library in the tests of the SBOM generation
(probably not good to hard-code these, but we needed to test that they are catch).

With this removal, please remove the mention in these lines of fp16

root_vendor_packages() ->
[ ~"asmjit", ~"pcre2", ~"zlib", ~"ryu", ~"fp16", ~"zstd"].

@lucioleKi lucioleKi force-pushed the isabell/erts/fp16_2 branch 2 times, most recently from 7ea4276 to ab58af8 Compare April 22, 2025 11:28
Copy link
Contributor

github-actions bot commented Apr 22, 2025

CT Test Results

    3 files    141 suites   49m 55s ⏱️
1 618 tests 1 562 ✅ 56 💤 0 ❌
2 339 runs  2 263 ✅ 76 💤 0 ❌

Results for commit f7c3e36.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@lucioleKi lucioleKi added the testing currently being tested, tag is used by OTP internal CI label Apr 22, 2025
The new implementation has the same behavior as the previous one.
The reason we are writing this new implementation is that the
previous version is external and has an MIT license. If it gets a newer
version, we need to upgrade it and keep it up to date. Because FP16 has
a clear specification and is stand-alone, it is easier to just write
our own implementation.

The newer compilers already have native support for FP16, so this
implementation is only relevant for older compilers. For this reason,
the new implementation has not been tested for speed.
@lucioleKi lucioleKi force-pushed the isabell/erts/fp16_2 branch from ab58af8 to f7c3e36 Compare April 24, 2025 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:VM Assigned to OTP team VM testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants