[mpich-discuss] my mpich2 can only run cpi...

Jayesh Krishna jayesh at mcs.anl.gov
Mon Aug 2 10:44:06 CDT 2010


Hi,
 Can you try running your job from the command line (Type "mpiexec -n 2 MYMPIPGM.exe" from the command line) and provide us with the output ?

Regards,
Jayesh
----- Original Message -----
From: "許家維" <cityjawei at gmail.com>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Saturday, July 31, 2010 12:45:44 AM GMT -06:00 US/Canada Central
Subject: Re: [mpich-discuss] my mpich2 can only run cpi...

Hi, 
I had recompile my code manytimes in release mode and it didn't show any error message,so I put it in "C:\Users\Public\Documents" but 
couldn't run correctly... 

My notebook is core 2 duo Intel cpu ,but the OS is win7 32bit ( I install mpich2 in 32 bit version ) using wireless network in school. 
I have creat an user account called "mpi" with password for runing mpi,so it just only one host... 


I update the screen shot in my picasa: http://picasaweb.google.com/CityJawei/Debug# 


thanks you very much~ 

with my mpi_test code 

//============================================================== 
#include "mpi.h" 
#include <cstdio> 
#include <math.h> 

int main(int argc, char* argv[]) 
{ 
int myid,numprocs; 
int namelen; 
char processor_name[MPI_MAX_PROCESSOR_NAME]; 

MPI_Init(&argc,&argv); 
MPI_Comm_rank(MPI_COMM_WORLD,&myid); 
MPI_Comm_size(MPI_COMM_WORLD,&numprocs); 
MPI_Get_processor_name(processor_name,&namelen); 

fprintf(stderr," Process %d of %d SAY HELLO TO MPI on %s\n",myid, numprocs, processor_name); 

MPI_Finalize(); 
return 0; 
} 
//============================================================== 

thanks again~!!! 

2010/7/30 Jayesh Krishna < jayesh at mcs.anl.gov > 
Hi, 
Did you recompile your code (on the same machine) after installing MPICH2 ? Can you send the source code of your hello world program ? 

Regards, 
Jayesh


More information about the mpich-discuss mailing list