Determinism for floating point operations in Rust

Is it possible to achieve deterministic floating point operations in Rust? Rust already carefully follows IEEE-754; but can it also guarantee determinism across hardware configurations? - assuming the same compiler rustc version used.

You may find this internals thread interesting: Pre-RFC: Dealing with broken floating point - language design - Rust Internals.

1 Like

Alternatively, is it possible to compile rust code with flags that #forbid non-deterministic operations? in particular random and float ops?