[mpich-discuss] mpi executable
Jayesh Krishna
jayesh at mcs.anl.gov
Fri Jun 22 09:47:50 CDT 2012
Hi,
You should register (mpiexec -register) a valid Windows username/password before launching your job with mpiexec. You can validate (see if it works) the registered username/password using "mpiexec -validate".
Let us know if it works for you.
Regards,
Jayesh
----- Original Message -----
From: "Titianingrum -" <08.5831 at stis.ac.id>
To: "Jayesh Krishna" <jayesh at mcs.anl.gov>
Sent: Thursday, June 21, 2012 4:59:42 PM
Subject: Re: [mpich-discuss] mpi executable
This is just simple code:
#include "stdio.h"
#include "mpi.h"
int main(int argc, char *argv[])
{
int numberOfProcessors;
int rank;
int namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(&argc,&argv);
printf("Hello MPI\r\n");
MPI_Comm_size(MPI_COMM_WORLD,&numberOfProcessors);
printf("Number of processor = %d\r\n",numberOfProcessors);
MPI_Get_processor_name(processor_name,&namelen);
printf("Processor name = %s\r\n",processor_name);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
printf("Rank = %d\r\n",rank);
MPI_Finalize();
getchar();
return 0;
}
-------------------------------------------------------------------------------
When it was run use Visual Studio C++, output :
Hello MPI
Number of processor = 1
Processor name = titia.Titia
Rank = 0
--------------------------------------------------------------------------------------------------------------
* but when it was runed from Command Prom:
C:\Program Files\MPICH2\bin\>mpiexec "E:\HelloMPI\Debug\HelloMPI.exe" -n 1
Credentials for titia rejected cennecting to titia.Titia
Aborting: Unable to connect to titia.Titia
--------------------------------------------------------------------------------------------------------------
I have setting like as the other PC which no problem.
Thanks.
On 6/22/12, Jayesh Krishna <jayesh at mcs.anl.gov> wrote:
> Hi,
> Can you provide us more details (The command used, output etc) on your
> problem?
>
> Regards,
> Jayesh
> ----- Original Message -----
> From: "Titianingrum -" <08.5831 at stis.ac.id>
> To: mpich-discuss at mcs.anl.gov
> Sent: Thursday, June 21, 2012 3:49:16 AM
> Subject: [mpich-discuss] mpi executable
>
> Hi,
>
> I have any problem when run MPI file use cmd,but it's ok when run use
> visual studio c++.
> I don't know the problem.
>
> thank.
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
--
titia
More information about the mpich-discuss
mailing list