Andreas, I've seen such issue in pure MPI applications. The usual reason is using an mpirun/mpiexec provided by an implementation different than the one used for linking. Checking for a mismatch there might help.
Best, Marcin pt., 5 lip 2019 o 00:56 Andreas Schäfer <[email protected]> napisał(a): > > Ahoy ahoy, > > I'm trying to debug why HPX isn't detecting the right number of > localities when running on one of my machines. I'm using the MPI > parcelport. When running a simple test program with 4 processes, each > thinks it's the only locality. > > I'm using HPX commit 7d7dfd6c60820d38c0cad7ed477b40a93ba421a4, my > build options are: > > cmake -DHPX_WITH_TESTS=false -DHPX_WITH_EXAMPLES=false > -DCMAKE_INSTALL_PREFIX=/home/gentryx_googlemail_com/test_build_libgeodecomp_/install/ > -DHPX_WITH_PARCELPORT_TCP=false -DHPX_WITH_PARCELPORT_MPI=true .. > > Test program: > > =============== 8< == *snip* =============== > #include <hpx/hpx.hpp> > #include <hpx/hpx_init.hpp> > > int hpx_main(int argc, char **argv) > { > std::size_t size = hpx::get_num_localities().get(); > std::cout << "size: " << size << "\n"; > return hpx::finalize(); > } > > int main(int argc, char **argv) > { > return hpx::init(argc, argv); > } > =============== 8< == *snip* =============== > > Output: > > mpirun -np 4 ~/test > size: 1 > size: 1 > size: 1 > size: 1 > > I know that this should output 4, but I can't figure out why it > doesn't on this machine. Any ideas for how to debug this? > > Thanks! > -Andi > > > -- > ========================================================== > Andreas Schäfer > > HPC and Supercomputing for Computer Simulations > LibGeoDecomp project lead, http://www.libgeodecomp.org > > PGP/GPG key via keyserver > > I'm an SRE @ Google, this is a private account though. > All mails are my own and not Google's. > ========================================================== > > (\___/) > (+'.'+) > (")_(") > This is Bunny. Copy and paste Bunny into your > signature to help him gain world domination! > _______________________________________________ > hpx-users mailing list > [email protected] > https://mail.cct.lsu.edu/mailman/listinfo/hpx-users _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
