We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The hpx::distributed::barrier::synchronize() runs successfully.
hpx::distributed::barrier::synchronize()
It gets into an assertion error
{file}: /home/jiakuny/workspace/hpx-master/libs/full/collectives/src/barrier.cpp {line}: 210 {function}: static void hpx::distributed::barrier::synchronize() {what}: Assertion 'b[0].node_ && b[1].node_' failed: HPX(assertion_failure)
A simple example code to reproduce this error. (Ran it with 2 localities)
void run_test(); HPX_PLAIN_ACTION(run_test, run_test_action) void run_test() { fprintf(stderr, "%d: run_test\n", hpx::get_locality_id()); hpx::distributed::barrier::synchronize(); } /////////////////////////////////////////////////////////////////////////////// int hpx_main(hpx::program_options::variables_map& b_arg) { std::vector<hpx::future<void>> futs; for (auto l : hpx::find_all_localities()) { futs.emplace_back(hpx::async<run_test_action>(l)); } hpx::wait_all(futs); hpx::finalize(); return 0; } int main(int argc, char* argv[]) { namespace po = hpx::program_options; po::options_description description("HPX test barrier"); hpx::init_params init_args; init_args.desc_cmdline = description; return hpx::init(argc, argv, init_args); }
The text was updated successfully, but these errors were encountered:
GDB told me post_main was triggered earilier than the call to hpx::distributed::barrier::synchronize() on locality 1.
post_main
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
The
hpx::distributed::barrier::synchronize()
runs successfully.Actual Behavior
It gets into an assertion error
Steps to Reproduce the Problem
A simple example code to reproduce this error. (Ran it with 2 localities)
Specifications
The text was updated successfully, but these errors were encountered: