openlibm
openlibm copied to clipboard
powl returns non-sense results in multi-thread mode
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.
any progress on this issue? Can someone confirm what I get?