Re: [OMPI users] An error occurred in MPI_comm_size
Hi, Am 08.04.2008 um 12:04 schrieb yacob sen: Thank you Brock and Terry for your comments. I did now install manually openmpi. Now openmpi works properly. I can compile and run my programs.It is so wonderful now. The result is now the same as when I run it in Linux cluster and on my dual processor Laptop. When I run : mpirun -np 4 ./test (test being the exe file coming form my the compiled fortran program). The program still give a result based on 4 processor. How can this be true while I have only two processor in my laptop. the Linux scheduler will just run these 4 processes as it would run every other set of 4 processes, i.e. each one will get 50% of a core, and you should see it in "top". It will of course not run faster, but you can test whether your programm runs correct when using 4 or more tasks. -- Reuti Can any one comment on this ? Regards yacob - Original Message From: yacob sen To: us...@open-mpi.org Sent: Monday, April 7, 2008 5:08:39 PM Subject: An error occurred in MPI_comm_size Dear All, I have just installed openmpi/mpich in ubuntu 7.10 in my linux machine which has a dual processor. I compiled my fortran program as follows: mpif90 add.f90 -o add_n I, however, forced to copy "mpif.h" library in my working directory where i run my program and also I inserted an additional line inside the file "/etc/openmpi/openmpi-mca-params.conf", the following : btl=^openib. I have then run the program as: mpirun -np 2 ./add_n (here I use 2 processor as my dual laptop has two processor) What I got is the following error message : [geosl063:13781] *** An error occurred in MPI_comm_size [geosl063:13780] *** An error occurred in MPI_comm_size [geosl063:13780] *** on communicator MPI_COMM_WORLD [geosl063:13780] *** MPI_ERR_COMM: invalid communicator [geosl063:13780] *** MPI_ERRORS_ARE_FATAL (goodbye) [geosl063:13781] *** on communicator MPI_COMM_WORLD [geosl063:13781] *** MPI_ERR_COMM: invalid communicator I used MPI commands to program my fortran code. The program has been running in a linux cluster. The point here is to develop my parallel program in my linux laptop before I go and run it in a Linux cluster. Any comments. I appreciate any comments Thank you so much Yacob You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] An error occurred in MPI_comm_size
Dear All Thank you Brock and Terry for your comments. I did now install manually openmpi. Now openmpi works properly. I can compile and run my programs.It is so wonderful now. The result is now the same as when I run it in Linux cluster and on my dual processor Laptop. When I run : mpirun -np 4 ./test (test being the exe file coming form my the compiled fortran program). The program still give a result based on 4 processor. How can this be true while I have only two processor in my laptop. Can any one comment on this ? Regards yacob - Original Message From: yacob sen To: us...@open-mpi.org Sent: Monday, April 7, 2008 5:08:39 PM Subject: An error occurred in MPI_comm_size Dear All, I have just installed openmpi/mpich in ubuntu 7.10 in my linux machine which has a dual processor. I compiled my fortran program as follows: mpif90 add.f90 -o add_n I, however, forced to copy "mpif.h" library in my working directory where i run my program and also I inserted an additional line inside the file "/etc/openmpi/openmpi-mca-params.conf", the following : btl=^openib. I have then run the program as: mpirun -np 2 ./add_n (here I use 2 processor as my dual laptop has two processor) What I got is the following error message : [geosl063:13781] *** An error occurred in MPI_comm_size [geosl063:13780] *** An error occurred in MPI_comm_size [geosl063:13780] *** on communicator MPI_COMM_WORLD [geosl063:13780] *** MPI_ERR_COMM: invalid communicator [geosl063:13780] *** MPI_ERRORS_ARE_FATAL (goodbye) [geosl063:13781] *** on communicator MPI_COMM_WORLD [geosl063:13781] *** MPI_ERR_COMM: invalid communicator I used MPI commands to program my fortran code. The program has been running in a linux cluster. The point here is to develop my parallel program in my linux laptop before I go and run it in a Linux cluster. Any comments. I appreciate any comments Thank you so much Yacob You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com
Re: [OMPI users] An error occurred in MPI_comm_size
On Mon, 2008-04-07 at 09:08 -0700, yacob sen wrote: > > > Dear All, > > I have just installed openmpi/mpich in ubuntu 7.10 in my linux machine > which has a dual processor. That's a little bit like saying you've installed Ubuntu/Red Hat on your machine. OpenMPI and MPICH are different versions of the same thing. You don't need to/probably shouldn't install both. Having to copy mpif.h locally sounds like MPICH. You certainly don't want to do this with OpenMPI. You need to work out exactly which mpif90 you're invoking. If it's OpenMPI, then continue here, the OpenMPI mailing list. If it's MPICH, try the MPICH mailing lists. Either way, what's happening will certainly be clearer if you uninstall one of OpenMPI/MPICH. > I compiled my fortran program as follows: > > mpif90 add.f90 -o add_n > > I, however, forced to copy "mpif.h" library in my working directory > where i run my program and also I inserted an additional line inside > the file "/etc/openmpi/openmpi-mca-params.conf", the following : > btl=^openib. > > > I have then run the program as: > > mpirun -np 2 ./add_n (here I use 2 processor as my dual laptop has > two processor) > > What I got is the following error message : > > [geosl063:13781] *** An error occurred in MPI_comm_size > [geosl063:13780] *** An error occurred in MPI_comm_size > [geosl063:13780] *** on communicator MPI_COMM_WORLD > [geosl063:13780] *** MPI_ERR_COMM: invalid communicator > [geosl063:13780] *** MPI_ERRORS_ARE_FATAL (goodbye) > [geosl063:13781] *** on communicator MPI_COMM_WORLD > [geosl063:13781] *** MPI_ERR_COMM: invalid communicator > > > I used MPI commands to program my fortran code. The program has been > running in a linux cluster. The point here is to develop my parallel > program in my linux laptop before I go and run it in a Linux cluster. > > Any comments. I appreciate any comments > > Thank you so much > > > Yacob > > > > > __ > You rock. That's why Blockbuster's offering you one month of > Blockbuster Total Access, No Cost. > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] An error occurred in MPI_comm_size
Your probably pulling in mpich's mpif.h or using mpich's mpirun. Chose ether OpenMPI or MPICH, not both, or if you do install in their own locations. They share way to many file names and commands to install both in standard /usr/local locations. Brock Palen www.umich.edu/~brockp Center for Advanced Computing bro...@umich.edu (734)936-1985 On Apr 7, 2008, at 12:08 PM, yacob sen wrote: Dear All, I have just installed openmpi/mpich in ubuntu 7.10 in my linux machine which has a dual processor. I compiled my fortran program as follows: mpif90 add.f90 -o add_n I, however, forced to copy "mpif.h" library in my working directory where i run my program and also I inserted an additional line inside the file "/etc/openmpi/openmpi-mca-params.conf", the following : btl=^openib. I have then run the program as: mpirun -np 2 ./add_n (here I use 2 processor as my dual laptop has two processor) What I got is the following error message : [geosl063:13781] *** An error occurred in MPI_comm_size [geosl063:13780] *** An error occurred in MPI_comm_size [geosl063:13780] *** on communicator MPI_COMM_WORLD [geosl063:13780] *** MPI_ERR_COMM: invalid communicator [geosl063:13780] *** MPI_ERRORS_ARE_FATAL (goodbye) [geosl063:13781] *** on communicator MPI_COMM_WORLD [geosl063:13781] *** MPI_ERR_COMM: invalid communicator I used MPI commands to program my fortran code. The program has been running in a linux cluster. The point here is to develop my parallel program in my linux laptop before I go and run it in a Linux cluster. Any comments. I appreciate any comments Thank you so much Yacob You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
[OMPI users] An error occurred in MPI_comm_size
Dear All, I have just installed openmpi/mpich in ubuntu 7.10 in my linux machine which has a dual processor. I compiled my fortran program as follows: mpif90 add.f90 -o add_n I, however, forced to copy "mpif.h" library in my working directory where i run my program and also I inserted an additional line inside the file "/etc/openmpi/openmpi-mca-params.conf", the following : btl=^openib. I have then run the program as: mpirun -np 2 ./add_n (here I use 2 processor as my dual laptop has two processor) What I got is the following error message : [geosl063:13781] *** An error occurred in MPI_comm_size [geosl063:13780] *** An error occurred in MPI_comm_size [geosl063:13780] *** on communicator MPI_COMM_WORLD [geosl063:13780] *** MPI_ERR_COMM: invalid communicator [geosl063:13780] *** MPI_ERRORS_ARE_FATAL (goodbye) [geosl063:13781] *** on communicator MPI_COMM_WORLD [geosl063:13781] *** MPI_ERR_COMM: invalid communicator I used MPI commands to program my fortran code. The program has been running in a linux cluster. The point here is to develop my parallel program in my linux laptop before I go and run it in a Linux cluster. Any comments. I appreciate any comments Thank you so much Yacob You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com