<!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>
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
</BODY>
</HTML>