Thanks for your quick reply Matt. I was using different MPIexec. The issue is now resolved.
Regards, Ajit *Ajit Desai* *--* * PhD Scholar, Carleton University * * Ottawa, Canada* On Thu, Dec 24, 2015 at 11:37 AM, Matthew Knepley <[email protected]> wrote: > On Thu, Dec 24, 2015 at 10:16 AM, Ajit Desai <[email protected]> > wrote: > >> Hello everyone, >> >> New user of PETSc and trying to get familiar with it for parallel >> computing applications. >> I wrote simple hello world code using PETSc environment and found a issue >> with the output. For instance : >> >> When I compile and execute "PETSc_helloWorld.F90" code with multiple >> processor. It prints following output. >> > > Almost certainly you are using an 'mpiexec' that does not match the MPI > library that you built PETSc with. Did you > use --download-mpich? Try this > > cd $PETSC_DIR > make check > > That will test it with the correct mpiexec. > > Matt > > >> MacUser$ *mpiexec -np 4 ./PETSc_helloWorld* >> >> * Hello from PETSc World, rank: 0 of total 1 processes.* >> >> * Hello from PETSc World, rank: 0 of total 1 processes.* >> >> * Hello from PETSc World, rank: 0 of total 1 processes.* >> >> * Hello from PETSc World, rank: 0 of total 1 processes.* >> >> >> Similar code with MPI prints following output: >> >> MacUser >> $ >> *mpiexec -np 4 ./a.out * >> >> * Hello from MPI World, rank: 0 * >> * * >> * of total 4 processes.* >> >> * Hello from MPI World, rank: 1 * >> * * >> * of total 4 processes.* >> >> * Hello from MPI World, rank: 2 * >> * * >> * of total 4 processes.* >> >> * Hello from MPI World, rank: 3 of total 4 processes. * >> >> I am not sure is this the issue with the PETSc installation in my >> machine or am I missing something here? >> I have attached both codes and *log_summary* of PETSc for your >> convenience. >> >> Thanks & Regards, >> >> *Ajit Desai* >> *--* >> * Carleton University * >> * Ottawa, Canada* >> > > > > -- > What most experimenters take for granted before they begin their > experiments is infinitely more interesting than any results to which their > experiments lead. > -- Norbert Wiener >
