You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sure, have at it. The main challenge is getting it done for all the backends, but if you add a test to tests/primitive, CI will tell you the ones you missed. For the 16 bit version, I would just use 32 bit arithmetic - we do that with many others. Let me know if you need more pointers.
How bad is it if results vary by 1 or 2 ULPs between backends? E.g. Haskell's log1p 2.0 gives 1.0986122886681096 to the interpreter while my implementation for ISPC gives 1.0986122886681098. Do I just omit those cases in tests?
log1p(x)
computes accuratelylog(1 + x)
even whenx
is very small.It looks like OpenCL and CUDA have it as primitives, although I can't find reference to a 16-bit CUDA
log1p
.I can give it a go if it turns out just to require appending definitions to the prelude.
The text was updated successfully, but these errors were encountered: