-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
hypot
for Float16 regressed
#38311
Comments
The version info shown is from 1.5.2 Julia 1.6 is changing the handling of |
When I run tests in REPL in 1.6 I get have the same situation as in testsuite:
As I good understand, when I invoke make command in the folder with current git repo it uses the 1.6 version? If it is the case, then it seems that something is broken with Float16 in v1.6. |
Ok that makes more sense :) |
hypot
for Float16 regressed
The issue appears to be this:
|
Yup. It's happening because of the uneven exponent range in the format that gives you extended range for small numbers by reducing the range for large numbers. The code was developed to be format independent but still had to make assumptions that are fairly typical in FPS. |
* Fix overflow for hypot in Float16 Fixes #38311 * hypot tests for ax > floatmax(ax)/2 * hypot Float16 promote to Float32 Co-authored-by: achuchmala <ach@spyro-soft.com>
I changed the commit as suggested in PR #38272, however some issue arised during running tests with make command:
the issue is with Float16, when I remove Float16 from the tested types, all tests pass.
When I do the same in REPL, everything goes as it should:
Interestingly, the test in line below passes even with Float16:
all test pass.
It seems that there is something wrong with make command.
Version Info
The text was updated successfully, but these errors were encountered: