<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
Hi again,<BR>
<BR>
Another information, I'm using slurm, and if I execute without reservation the nodes, I'm successful .<BR>
<BR>
With slurm, first I made salloc reservation.<BR>
<BR>
$ salloc -N 3 --exclusive<BR>
<BR>
And I receive a 3 nodes with 8 cores.<BR>
<BR>
$ echo $SLURM_NODELIST <BR>
machine01<BR>
machine02<BR>
machine03<BR>
<BR>
and if I run mpiexec<BR>
<BR>
$ mpiexec -n 10 -f host.txt ./hostname_test<BR>
srun: error: Only allocated 3 nodes asked for 6<BR>
<BR>
Regards<BR>
<BR>
Fernando Luz<BR>
<BR>
On Sex, 2012-02-03 at 18:31 -0200, Fernando Luz wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Hello,<BR>
    <BR>
    I create the follow program:<BR>
    <BR>
    =========================================================<BR>
    #include "mpi.h"<BR>
    # include <cstdlib><BR>
    # include <iostream><BR>
    # include <iomanip><BR>
    # include <ctime><BR>
    <BR>
    <BR>
    int main ( int argc, char *argv[] )<BR>
    {<BR>
      int rank;<BR>
      int size;<BR>
      char hostname[255];<BR>
      int size_hostname;<BR>
      double wtime;<BR>
    <BR>
      MPI::Init ( argc, argv );<BR>
      size = MPI::COMM_WORLD.Get_size();<BR>
      rank = MPI::COMM_WORLD.Get_rank();<BR>
      MPI::Get_processor_name(hostname, size_hostname);<BR>
      <BR>
      if ( rank == 0 ){<BR>
        std::cout << "  print size = " << size << std::endl;<BR>
      }<BR>
    <BR>
      std::cout << "I am rank=" << rank << " and my hostname=" << hostname << std::endl;<BR>
      <BR>
      MPI::Finalize();<BR>
    <BR>
      return 0;<BR>
    }<BR>
    =========================================================<BR>
    <BR>
    In my execution test, I was planned run this program using this command-line<BR>
    <BR>
    $ mpiexec -n 10 -f host.txt ./hostname_test<BR>
    <BR>
    and the host.txt<BR>
    ========================================================<BR>
    machine01  # rank 0 run in machine01<BR>
    machine02  # rank 1 run in machine02<BR>
    machine03  # rank 2 run in machine03<BR>
    machine03  # rank 3 run in machine03<BR>
    machine02  # rank 4 run in machine02<BR>
    machine03  # rank 5 run in machine03<BR>
    machine01  # rank 6 run in machine01<BR>
    machine01  # rank 7 run in machine01<BR>
    machine03  # rank 8 run in machine03<BR>
    machine01  # rank 9 run in machine01<BR>
    ========================================================<BR>
    <BR>
    But I don't have success. <BR>
    <BR>
    It's possible to select a process to run in a specific node?<BR>
    <BR>
    Regards<BR>
    <BR>
    Fernando Luz 
<PRE>
_______________________________________________
mpich-discuss mailing list     <A HREF="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A>
To manage subscription options or unsubscribe:
<A HREF="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>