Skip to content

Commit

Permalink
Revert "bit_test multi-thread test"
Browse files Browse the repository at this point in the history
This reverts commit e3dda6d.
  • Loading branch information
ohhmm committed Nov 25, 2024
1 parent 2e82dd5 commit 01aa0d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omnn/math/test/sh_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ BOOST_AUTO_TEST_CASE(bit_test)
BOOST_TEST(*bit.FindVa() == x);
std::cout << "bit " << j << " of x is " << bit << std::endl;
for (int i = 0; i < UpTo; ++i) {
tasks.emplace(std::async([=](){ // FIXME: stability issue
// tasks.emplace(std::async([=](){ // FIXME: stability issue
auto etalon = i & n;
auto b = bit;
BOOST_TEST(b.eval({{x, i}}));
Expand All @@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(bit_test)
b = an.eval({{x, i}});
an.optimize();
BOOST_TEST(an==etalon);
}));
// }));
if(tasks.size() > hwThreads)
tasks.pop();
}
Expand Down

0 comments on commit 01aa0d9

Please sign in to comment.