site: robert.ocallahan.org
Emulating AMD Approximate Arithmetic Instructions On Intel
https://robert.ocallahan.org/2021/09/emulating-amd-rsqrtss-etc-on-intel.html [robert.ocallahan.org]
2021-09-13 04:29
tags:
cpu
debugging
math
programming
virtualization
Pernosco accepts uploaded rr recordings from customers and replays them with binary instrumentation to build a database of all program execution, to power an amazing debugging experience. Our infrastructure is Intel-based AWS instances. Some customers upload recordings made on AMD (Zen) machines; for these recordings to replay correctly on Intel machines, instruction execution needs to produce bit-identical results. This is almost always true, but I recently discovered that the approximate arithmetic instructions RSQRTSS, RCPSS and friends do not produce identical results on Zen vs Intel. Fortunately, since Pernosco replays with binary instrumentation, we can insert code to emulate the AMD behavior of these instructions. I just needed to figure out a good way to implement that emulation.
source: HN
rr 5.0 Released
http://robert.ocallahan.org/2017/09/rr-50-released.html [robert.ocallahan.org]
2017-09-07 16:49
tags:
release
swtools
Kyle convinced me that trace stability and portability were worth a major version bump.
source: L
Another Case Of Obscure CPU Nondeterminism
http://robert.ocallahan.org/2017/06/another-case-of-obscure-cpu.html [robert.ocallahan.org]
2017-06-14 23:19
tags:
cpu
programming
swtools
systems
I recently discovered the obscure XGETBV instruction.
source: L
A Couple Of Papers About Commodity Multicore Record And Replay, And A Possible Way Forward
http://robert.ocallahan.org/2017/05/a-couple-of-papers-about-commodity.html [robert.ocallahan.org]
2017-05-25 08:07
tags:
compsci
concurrency
development
paper
To be clear: I don’t want to work on this. I’m a lot more interested in the applications of record-and-replay than the machinery that does it. I want someone else to do it for us
rr 4.5.0 Released
http://robert.ocallahan.org/2017/02/rr-450-released.html [robert.ocallahan.org]
2017-02-05 14:26
tags:
release
swtools
I may never tire of printf debugging, but if some day I do, I will try rr.
source: L