Numerical discrepancies when running scientific software on AMD64 machine on ARM #1251
AntoineGautier
started this conversation in
General
Replies: 2 comments
-
Probably because of Rosetta not emulating 80-bit x87 FPU instructions accurately. We won't be able to do anything about this, but could you share a reproducer? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'll try to find a reproducer using https://openmodelica.org/ and attach it here. (Previous occurrences of this issue relied on proprietary software.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use OrbStack to emulate AMD64 Ubuntu on ARM. I typically run scientific software and occasionally notice small numerical discrepancies compared to the same calculations performed on native Linux machines or even on WSL Linux running on AMD64 Windows. These programs rely on gcc for compiling auto-generated C code and linking mathematical libraries (libm, liblapack, libsundials). I can confirm that the version of gcc and these libraries are the same across the different environments.
I am curious about the origins of these numerical discrepancies. Could they be due to the emulation process or differences in the Linux kernel itself? Are there specific design choices in OrbStack that might explain them?
Beta Was this translation helpful? Give feedback.
All reactions