Skip to content

Order of operations test failure for reducer reset on host. #1217

Open
@rchen20

Description

Strange test failure when ordering of reset calls occurs in test-reducer-reset-seq when built with NVCC/10.1.243 + GCC/8.3.1 (#1207).

When the ordering of resets is maxloc after minloc,

reduce_minloctup.reset(resetVal[0]);
reduce_maxloctup.reset(resetVal[0]);

the test fails when maxloc get is called,
ASSERT_EQ((NumericType)reduce_maxloctup.get(), (NumericType)(resetVal[0]));

The test failure shows that the default initialized values were returned by get:

[chen59@rzansel9:reducer]$ ../../test-reducer-reset-seq.exe
Running main() from /usr/WS1/chen59/allraja/rajaatomicexhaustive/raja_git_atomicexhaustive/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/src/gtest_main.cc
[==========] Running 3 tests from 3 test suites.
[----------] Global test environment set-up.
[----------] 1 test from SequentialResetTest/ReducerResetUnitTest/0, where TypeParam = camp::list<RAJA::policy::sequential::seq_reduce, int, camp::resources::v1::Host, forone_seq>
[ RUN ] SequentialResetTest/ReducerResetUnitTest/0.BasicReset
/usr/WS1/chen59/allraja/rajaatomicexhaustive/raja_git_atomicexhaustive/test/unit/reducer/tests/test-reducer-reset.hpp:157: Failure
Expected equality of these values:
(NumericType)reduce_maxloctup.get()
Which is: -2147483648
(NumericType)(resetVal[0]) [13/1814]
Which is: 10
[ FAILED ] SequentialResetTest/ReducerResetUnitTest/0.BasicReset, where TypeParam = camp::list<RAJA::policy::sequential::seq_reduce, int, camp::resources::v1::Host, forone_seq> (262 ms)
[----------] 1 test from SequentialResetTest/ReducerResetUnitTest/0 (262 ms total)

[----------] 1 test from SequentialResetTest/ReducerResetUnitTest/1, where TypeParam = camp::list<RAJA::policy::sequential::seq_reduce, float, camp::resources::v1::Host, forone_seq>
[ RUN ] SequentialResetTest/ReducerResetUnitTest/1.BasicReset
/usr/WS1/chen59/allraja/rajaatomicexhaustive/raja_git_atomicexhaustive/test/unit/reducer/tests/test-reducer-reset.hpp:157: Failure
Expected equality of these values:
(NumericType)reduce_maxloctup.get()
Which is: -3.40282e+38
(NumericType)(resetVal[0])
Which is: 10
[ FAILED ] SequentialResetTest/ReducerResetUnitTest/1.BasicReset, where TypeParam = camp::list<RAJA::policy::sequential::seq_reduce, float, camp::resources::v1::Host, forone_seq> (0 ms)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions