-
Notifications
You must be signed in to change notification settings - Fork 22
use per-task (not per-thread) flags, rounding mode, etcetera? #153
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
Comments
After Julia JuliaLang/julia#57087, tests fail on arm64-apple-darwin22.6.0.
|
e.g. instead of looking up get!(task_local_storage(), ROUNDINGMODE, DecFPRoundNearest) where Unfortunately, The only alternative I see would be to make it a global constant, and tell people to be wary of changing the rounding mode in multi-threaded programs. That doesn't work for the exception flags. In principle we could allocate a new |
Good news: in benchmarks of actual calculations, the overhead of a task-local rounding mode seems much lower than I feared. |
Right now we have an array of these, one per thread. This may no longer be safe since tasks can now migrate between threads.
Would be better to have this per task?
The text was updated successfully, but these errors were encountered: