This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1597 - cxx11_tensor_reduction fails non-deterministic
Summary: cxx11_tensor_reduction fails non-deterministic
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Tensor (show other bugs)
Version: 3.4 (development)
Hardware: All All
: Normal Failed Unit Test
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-14 16:08 UTC by Christoph Hertzberg
Modified: 2019-12-04 17:55 UTC (History)
4 users (show)



Attachments

Description Christoph Hertzberg 2018-09-14 16:08:43 UTC
The test occasionally fails, but apparently not depending on the random-seed. Maybe there is a race condition somewhere.
To reproduce, build the test and run this from the build-directory:

while ./unsupported/test/cxx11_tensor_reduction s1; do echo " Success"; done

after 1-10 tries this results in:

> Difference too large wrt tolerance 0.0100021, relative error is: -nan
> Test ( test_simple_reductions<Eigen::half,ColMajor>() ) failed in ../unsupported/test/cxx11_tensor_reduction.cpp (107)
>     verifyIsApprox(result(i, j), prod)
> Stack:
>   - ( test_simple_reductions<Eigen::half,ColMajor>() )
>   - cxx11_tensor_reduction
>   - Seed: 1


The 's1' has no effect here, this is just to illustrate the non-deterministic nature of the problem.
Maybe there is a race condition in the code.
Comment 1 Christoph Hertzberg 2018-09-20 17:01:52 UTC
The reason for the non-deterministic behavior is Bug 1602.
Comment 2 Nobody 2019-12-04 17:55:52 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1597.

Note You need to log in before you can comment on or make changes to this bug.