The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

How to set multiple processes when testing BLACS

Open discussion regarding features, bugs, issues, vendors, etc.

How to set multiple processes when testing BLACS

Postby bruce » Thu Oct 26, 2006 12:31 pm

Hi, there:

I met a slight problem with "Not enough processes in testing BLACS". I tried to test BLACS by running xCbtest_MPI_LINUX-1 and xFbtest_MPI-LINUX-1 excutables to check the result. I read the manual and it is said that I need 4 processes to run the tester. I have no idea how to set 4 processes to finish the test.

The errors are provided below:

===============================
[root@athena EXE]$ ./xCbtest_MPI-LINUX-1
BLACS WARNING 'No need to set message ID range due to MPI communicator.'
from {-1,-1}, pnum=0, Contxt=-1, on line 18 of file 'blacs_set_.c'.

Sample BLACS tester run
==============================================
==============================================
BEGINNING BLACS TESTING, BLACS DEBUG LEVEL = 1
==============================================
==============================================
BLACS ERROR 'Illegal grid (2 x 2), #procs=1'
from {-1,-1}, pnum=0, Contxt=-1, on line -1 of file 'BLACS_GRIDINIT/BLACS_GRIDMAP'.

[unset]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
[root@athena EXE]$
[root@athena EXE]$ scalapack: No such file or directory.
scalapack:: Too many arguments.


and the Fortran executable has the same error as following:

[root@athena EXE]$ ./xFbtest_MPI-LINUX-1
BLACS WARNING 'No need to set message ID range due to MPI communicator.'
from {-1,-1}, pnum=0, Contxt=-1, on line 18 of file 'blacs_set_.c'.

Sample BLACS tester run
==============================================
==============================================
BEGINNING BLACS TESTING, BLACS DEBUG LEVEL = 1
==============================================
==============================================
BLACS ERROR 'Illegal grid (2 x 2), #procs=1'
from {-1,-1}, pnum=0, Contxt=-1, on line -1 of file 'BLACS_GRIDINIT/BLACS_GRIDMAP'.

[unset]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0

=============================================
The same thing happen when I run the executables in BLACS/INSTALL/EXE. I tried to run executables like
xtc_CsameF77,xcmpi_sane,xfmpi_sane, the errors are like
"Need 2 processes to run the test" or "Need 4 processes to run the test".

I know that there seems like set processes to run mpi program, but I really have no idea about this.

Anyone can give me some help or hint will be highly appreciated!

Bruce
bruce
 
Posts: 36
Joined: Mon Sep 25, 2006 5:11 am

Postby Julie » Thu Oct 26, 2006 12:41 pm

Hi Bruce,

you need to use the mpirun command.
The synthax will depend on the MPI that you are using.
You need to read some documentation about how to use your MPI and especially how to specify/start the node where you want to run.

but the command should be something like:
Code: Select all
mpirun -np 4 /xCbtest_MPI-LINUX-1

np means number of processors.

Thanks
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

Thank you Julie

Postby bruce » Thu Oct 26, 2006 1:24 pm

Hi, Julie:

You reminds me something. I used MPI C before. I tried to use your instruction. I still got the errors.

[root@athena EXE]$ mpirun -np 4 ./xCbtest_MPI-LINUX-1
BLACS WARNING 'No need to set message ID range due to MPI communicator.'
from {-1,-1}, pnum=0, Contxt=-1, on line 18 of file 'blacs_set_.c'.

Sample BLACS tester run
==============================================
==============================================
BEGINNING BLACS TESTING, BLACS DEBUG LEVEL = 1
==============================================
==============================================
BLACS ERROR 'Illegal grid (2 x 2), #procs=1'
from {-1,-1}, pnum=0, Contxt=-1, on line -1 of file 'BLACS_GRIDINIT/BLACS_GRIDMAP'.

[unset]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
[root@athena EXE]$

I am wondering if I need to modify some file? I got this warning below:

===========================================
BLACS WARNING 'No need to set message ID range due to MPI communicator.'
from {-1,-1}, pnum=0, Contxt=-1, on line 18 of file 'blacs_set_.c'.

Thanks

Bruce
bruce
 
Posts: 36
Joined: Mon Sep 25, 2006 5:11 am

Postby Julie » Thu Oct 26, 2006 2:50 pm

which version od MPI are you using?
- MPICH
- MPICH2
- LAM-MPI
- OPEN-MPI
- ....

You have to read the MPI documentation first. They will explain you how to select the machines you want to run on, and how to provide the list of machines to the mpirun command.

I may be able to help you, but I really need to konw wich MPI implementation you are using.

Sincelrely
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado

MPI version

Postby bruce » Thu Oct 26, 2006 9:43 pm

Hi, Julie:

I really appreciate your help. My MPI version is MPICH2. I will try to find the manual for MPICH2 and get falimilar with it.

Thank very very much!

Bruce
Last edited by bruce on Fri Oct 27, 2006 3:01 pm, edited 1 time in total.
bruce
 
Posts: 36
Joined: Mon Sep 25, 2006 5:11 am

MPI version

Postby bruce » Thu Oct 26, 2006 10:58 pm

Hi, Julie:

I really appreciate your help. My MPI version is MPICH2. I will try to find the manual for MPICH2 and get falimilar with it.

Thank very very much!

Bruce
Last edited by bruce on Fri Oct 27, 2006 3:01 pm, edited 1 time in total.
bruce
 
Posts: 36
Joined: Mon Sep 25, 2006 5:11 am

hi, Julie

Postby bruce » Fri Oct 27, 2006 11:43 am

I got that I need to use mpiexec -n num executable to run it.

I think it won't be a big problem to test them.

Thanks, Julie

Bruce
bruce
 
Posts: 36
Joined: Mon Sep 25, 2006 5:11 am


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 6 guests