neuro-ml / imops

Efficient parallelizable algorithms for multidimensional arrays to speed up your data pipelines
https://neuro-ml.github.io/imops/
MIT License
21 stars 1 forks source link

Imports of `ffast-math` compiled extensions change global FPU state #37

Open vovaf709 opened 1 year ago

vovaf709 commented 1 year ago

For example import imops breaks floating point subnormals flushing them to 0:

import sys
sys.float_info.min / 2 != 0.0  # True

import imops
sys.float_info.min / 2 != 0.0  # False
vovaf709 commented 1 year ago

https://github.com/llvm/llvm-project/issues/57589

vovaf709 commented 1 year ago

https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html