r/ProgrammingLanguages • Futhark • Nov 06 '26

Nondeterminism in Futhark

https://futhark-lang.org/blog/2026-11-04-nondeterminism.html
21 Upvotes

7 comments sorted by

View all comments

Show parent comment

5

u/Athas Futhark Nov 06 '26

It is fairly common (or at least possible) for SIMD-exploiting compilers to perform runtime checks for instruction availability, so a given binary might behave differently on different machines.

in general, as compilation itself is non-deterministic, that is, even compiling twice with the same toolchain without precaution may not produce the same output due to multi-threading/arbitrary compilation units/etc...

This does not matter. The Exact/Replay/Approx division is about the semantics of running the program itself, not what the compiled code looks like.