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

Strange Scalapack mpirun problem

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

Strange Scalapack mpirun problem

Postby priyanka » Mon Jul 16, 2007 8:29 am

Hello,
I have installed BLACS,BLAS and ScaLAPACK. All the testing executables also run fine.

Now I tried to run following test program (modifying it to Fortran90 code test1.f90) :
http://www.netlib.org/scalapack/examples/example1.f

I compiled it as:
geodsk79% pgf90 test1.f90 -lfmpich -lmpich /home/psadhnani/SCALAPACK/libscalapack.a /home/psadhnani/BLACS/LIB/blacs_MPI-LINUX-1.a /home/psadhnani/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /home/psadhnani/BLACS/LIB/blacsF77init_MPI-LINUX-1.a /home/psadhnani/BLACS/LIB/blacs_MPI-LINUX-1.a /opt/pgi/linux86/lib/libblas.a
test1.f90:


This means it is compiled successfully. BUT when I try to run it using mpirun command:
geodsk79% mpirun -np 4 ./a.out

I get a sequence of errors stating :

Fatal error; unknown error handler
May be MPI call before MPI_INIT. Error message is MPI_ABORT and code is 197
BLACS ERROR 'MPI error 197 on call to MPI_Abort'
from {-1,-1}, pnum=0, Contxt=-1, on line 8 of file 'BI_BlacsAbort.c'.


I am unable to make out if this is the error with ScaLAPACK installation or something else because it got compiled successfully as I can make out.

Please help me out resolving this error. Any sort of help will be highly appreciated.

Regards
priyanka
 
Posts: 9
Joined: Fri Jun 22, 2007 12:13 am

Re: Strange Scalapack mpirun problem

Postby buttari » Mon Jul 16, 2007 8:54 am

priyanka wrote:Hello,
I have installed BLACS,BLAS and ScaLAPACK. All the testing executables also run fine.

Now I tried to run following test program (modifying it to Fortran90 code test1.f90) :
http://www.netlib.org/scalapack/examples/example1.f

I compiled it as:
geodsk79% pgf90 test1.f90 -lfmpich -lmpich /home/psadhnani/SCALAPACK/libscalapack.a /home/psadhnani/BLACS/LIB/blacs_MPI-LINUX-1.a /home/psadhnani/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /home/psadhnani/BLACS/LIB/blacsF77init_MPI-LINUX-1.a /home/psadhnani/BLACS/LIB/blacs_MPI-LINUX-1.a /opt/pgi/linux86/lib/libblas.a
test1.f90:


This means it is compiled successfully. BUT when I try to run it using mpirun command:
geodsk79% mpirun -np 4 ./a.out

I get a sequence of errors stating :

Fatal error; unknown error handler
May be MPI call before MPI_INIT. Error message is MPI_ABORT and code is 197
BLACS ERROR 'MPI error 197 on call to MPI_Abort'
from {-1,-1}, pnum=0, Contxt=-1, on line 8 of file 'BI_BlacsAbort.c'.


I am unable to make out if this is the error with ScaLAPACK installation or something else because it got compiled successfully as I can make out.

Please help me out resolving this error. Any sort of help will be highly appreciated.

Regards


Priyanka,
the problem is in the way you configured the BLACS library. In the BLACS/INSTALL directory there are little programs that tell you hoe the set the variables in the Bmake.inc file. Did you use those programs to configure the BLACS?
Regards

Alfredo
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm

Postby priyanka » Tue Jul 17, 2007 12:08 am

Thanks a lot Alfredo. The problem is solved. It was due to some error in the way I was linking to libraries while executing the program.
Regards
priyanka
 
Posts: 9
Joined: Fri Jun 22, 2007 12:13 am


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests