Skip to content

Floating-point contractions with Visual Studio 2019 #288

Answered by jrouwe
mihe asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're right. I've only tested cross platform determinism under (Windows, VS2022, x64) vs (Linux, Clang, x64) vs (Linux, Clang, ARM), but if VS2019 allows floating point contractions with /fp:precise then it won't deliver the same result as say (Linux, Clang, x64).

If you only need determinism within 1 platform, you don't need this define though and it won't matter if float contractions are enabled or not.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@mihe
Comment options

@jrouwe
Comment options

@mihe
Comment options

@jrouwe
Comment options

Answer selected by mihe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants