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

xoptional.bool_operation test fails with XSIMD and OpenMP enabled #2653

Open
nodatapoints opened this issue Feb 12, 2023 · 1 comment
Open

Comments

@nodatapoints
Copy link

When configured with -DXTENSOR_USE_{XSIMD,OPENMP}=1 -DBUILD_TESTS=1 the test fails with

/tmp/xtensor/test/test_xoptional.cpp:92:
TEST CASE:  xoptional.bool_operation

/tmp/xtensor/test/test_xoptional.cpp:98: ERROR: CHECK_EQ( res(0, 1).value(), true ) is NOT correct!
  values: CHECK_EQ( {?}, true )

May be related to #1802. Compiler info attached.
gcc-info.txt

@JohanMabille
Copy link
Member

The issue is due to a container in the xtl which is not thread-safe, see xtensor-stack/xtl#240. This container is used for storing the boolean part of optional containers in xtensor.

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

2 participants