Thank you for your answer. <br><br>I am getting the hostnames dynamically(at runtime). To create a file I must crate a datastream. I was using it but If I create a stream I am loosing too many clock cycles. I am now triing to do it faster. <br>
<br>Isn't it possible without a hostfile? Can't we add more then one hostname to MPI_Info object?<br><br><br><br><div class="gmail_quote">On 24 February 2012 15:48, Rajeev Thakur <span dir="ltr"><<a href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can store all the host names in a file and use the info key "hostlist" with the value being the name of the file.<br>
<div><div class="h5"><br>
On Feb 24, 2012, at 6:38 AM, Umit wrote:<br>
<br>
> Hello all,<br>
><br>
> Is there any comprehensive documentation about mpich2?<br>
><br>
> I want to learn which keys are allowed in MPI_comm_spawn. Is not there any documentation about these things?<br>
><br>
> I want to create more then one process at once on specific hosts.<br>
><br>
> If I run the programm with following code I can create two processes on core01<br>
> np=2;<br>
> MPI_Info_create( &info2 );<br>
> MPI_Info_set(info2, "host","core01");<br>
> MPI_Comm_spawn( "/demo2/./demo2", MPI_ARGV_NULL, np, info2, 0, MPI_COMM_WORLD, &intercomm, errcodes );<br>
><br>
> But I want to create each process in other core? Is is possible? I tried adding more then one core to info2 but it did not work :<br>
> MPI_Info_set(info2, "host","core01,core02");<br>
><br>
> I got he following error: Fatal error in MPI_Comm_spawn: Other MPI error, error stack<br>
><br>
> Can somebody help me please?<br>
><br>
> Kind Regards,<br>
</div></div>> _______________________________________________<br>
> mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
<br>
_______________________________________________<br>
mpich-discuss mailing list <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br>