Basic demonstrator for mem-mode heatmap/op flagging.#18
Conversation
|
@lucasmnd this is the basic proof-of-concept for tracing errors to individual operations and building a heatmap of errors. In this state, the idea is quite primitive: compute the error of the truncated operation results compared to double-precision. Then, divide by the result to get a relative error. See Mpfr.cpp lines 435-450. I've added a few extra print statements here to show what's going on; you will want to remove them if you plan to use this code with any more than a few tens of operations. Calling I've added a quick example in So you can see that the multiplication A few more details:
This is very much a prototype. I'm looking forward to getting some insights into your use-case and building on your feedback to turn this into a proper feature. |
Revive tracking for individual floating-point errors in mem-mode.