Why can I only detect only one locality ? #6516
-
My code is as follows: hpx::this_thread::sleep_for(5s);
INFO("%s", __FUNCTION__);
std::vector<hpx::id_type> localities = hpx::find_all_localities();
if (localities.size() < 2)
{
ERROR("this program requires at least two localities");
return;
} When compiling HPX, I used HPX_WITH_PARCELPORT_TCP=ON. I ran the same program on two hosts in the same local network, but hpx::find_all_localities() cannot detect the locality on the other host. I checked the HPX documentation and added some command line parameters, such as: HPX options (additionally allowed in an options file) --hpx:console --hpx:connect --hpx:run-agas-server --hpx:run-hpx-main --hpx:hpx arg --hpx:agas arg However, I still can't detect localities on other hosts. What should I do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Please see here for an explanation of what's going on and how to resolve the problem: https://stackoverflow.com/questions/35367816/hpx-minimal-two-node-example-set-up |
Beta Was this translation helpful? Give feedback.
Please see here for an explanation of what's going on and how to resolve the problem: https://stackoverflow.com/questions/35367816/hpx-minimal-two-node-example-set-up