Hello everybody,
I need to determine the target hosts of an MPI_Comm_spawn by using a file.
My solution has been to follow the same procedure of giving a host list, but changing the key:

MPI_Info_set(info, "hostfile", filename) instead of MPI_Info_set(info, "hosts", hostlist)

However, MPI_Comm_spawn seems to ignore "hostfile" key and the processes are spawned in the wrong hosts (the hosts set during the first mpiexec).

Which key should I use?

I'm working over MPICH 3.2

Best regards,
--
Sergio Iserte   -   http://me.sergioiserte.info
Research Assistant @ HPC&A Research Group
Universitat Jaume I (UJI)
Castellón de la Plana (Spain)