Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Problem on openmpi run
From: Ralph Castain (rhc_at_[hidden])
Date: 2009-11-17 22:03:50


On Nov 17, 2009, at 7:39 PM, Jiaye Li wrote:

> Dear users
>
> I installed openmpi 1.3.3 on my PC (single core & quad-processes). The compilation reported no error and I have found the executable file in the configure directory. But when I try to test it, I met a problem.
>
> I tested it with Vasp and PWscf programs, respectively. I typed "mpirun -np 4 vasp &", and then it runs like four separated processes (not parallel run), which looks like "mpirun -np 1 vasp &" X 4.

How did you determine this? If you run something simple that outputs MPI rank and comm_world_size, what do you get?

> Moreover, I tested it with pwscf by "mpirun -np 4 pwscf <input >output &", only 25% of cpu was taken up.(It should have been 100%, 4 processes).

Could be a lot of reasons for this - may well be running correctly. It depends on what else is going on in the system at the time. OMPI doesn't bind to processors by default, and if you don't tell it something about how many processors are available to it, it may well run "non-aggressively" and not consume all your cpu.

You might try giving it a hostfile indicating you have four slots available on this node, and then set -mca mpi_paffinity_alone 1 so it behaves aggressively. You should get more utilization out of it that way.

>
> Could anybody help me to fix this problem? Thank you in advance.
>
> --
> Sincerely yours
>
> Jiaye Li
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users