openlibm icon indicating copy to clipboard operation
openlibm copied to clipboard

powl returns non-sense results in multi-thread mode

Open zimmermann6 opened this issue 4 years ago • 2 comments

with the attached program I get with OpenLibm 0.7.4:

$ gcc -fno-builtin test_pow_openlibm.c /localdisk/zimmerma/openlibm-0.7.4/libopenlibm.a -fopenmp

$ OMP_NUM_THREADS=1 ./a.out nthreads=1

$ OMP_NUM_THREADS=2 ./a.out nthreads=2 Error for powl(0x8.779021e7c2f81b2p+14982,-0x8.0021b03e1f821c9p-15097), expected 1, got 0x8.8980e8092da8445p-3 Error for powl(0x8.779021e7c2f81b2p+14982,-0x8.0021b03e1f821c9p-15097), expected 1, got 0x8.2fae3a785f61333p-3

There seems to be an issue with powl when several threads use it.

test_pow_openlibm.c.gz

zimmermann6 avatar Feb 04 '21 07:02 zimmermann6

any progress on this issue? Can someone confirm what I get?

zimmermann6 avatar Jul 23 '21 12:07 zimmermann6