Skip to content

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

Open
@zimmermann6

Description

@zimmermann6

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions