Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powl returns non-sense results in multi-thread mode #222

Open
zimmermann6 opened this issue Feb 4, 2021 · 1 comment
Open

powl returns non-sense results in multi-thread mode #222

zimmermann6 opened this issue Feb 4, 2021 · 1 comment

Comments

@zimmermann6
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant