by bruce » Thu Nov 09, 2006 4:01 pm
Hi,
This is a new update. I use the following command to compile the code. It can be sucessfully compiled. However, I have errors in running the executables. I hope you can help.
mpif77 test_pdsyev.c /home/xiaofeng/SCALAPACK/libscalapack.a /home/xiaofeng/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /home/xiaofeng/BLACS/LIB/blacsF77init_MPI-LINUX-1.a /home/xiaofeng/BLACS/LIB/blacs_MPI-LINUX-1.a /home/xiaofeng/ATLAS/lib/linux_x8664sse2/libf77blas.a /home/xiaofeng/ATLAS/lib/linux_x8664sse2/libatlas.a /opt/MPICH2/lib/libmpich.a -o test_pdsyev
I am using MPICH2.
Here are some information of my startup of nodes for MPI.
[xiaofeng@athena ~]$ mpdboot -n 8
[xiaofeng@athena ~]$ mpdtrace
athena
oscarnode4
oscarnode1
oscarnode3
oscarnode2
oscarnode7
oscarnode6
oscarnode5
[xiaofeng@athena s_code]$ ls
blacs.h blas.h error1.log error.log lagacy_makefile Makefile Makefile.opts result scalapack.h test_pdsyev.c
[xiaofeng@athena s_code]$ mpif77 test_pdsyev.c /home/xiaofeng/SCALAPACK/libscalapack.a /home/xiaofeng/BLACS/LIB/blacsCinit_MPI-LINUX-1.a /home/xiaofeng/BLACS/LIB/blacsF77init_MPI-LINUX-1.a /home/xiaofeng/BLACS/LIB/blacs_MPI-LINUX-1.a /home/xiaofeng/ATLAS/lib/linux_x8664sse2/libf77blas.a /home/xiaofeng/ATLAS/lib/linux_x8664sse2/libatlas.a /opt/MPICH2/lib/libmpich.a -o test_pdsyev
[xiaofeng@athena s_code]$ ls
blacs.h blas.h error1.log error.log lagacy_makefile Makefile Makefile.opts result scalapack.h test_pdsyev test_pdsyev.c
I successfully get the executable test_pdsyev.
Then I run it. I got errors like this:
==============================
[xiaofeng@athena s_code]$ mpiexec -n 8 ./test_pdsyev
rank 7 in job 1 athena.cs.siu.edu_44953 caused collective abort of all ranks
exit status of rank 7: return code 1
BLACS ERROR 'Invalid context handle: 0'
from {-1,-1}, pnum=2, Contxt=-1, on line 38 of file 'BI_BlacsErr.c'.
[cli_2]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 2
BLACS ERROR 'Invalid context handle: 0'
from {-1,-1}, pnum=6, Contxt=-1, on line 38 of file 'BI_BlacsErr.c'.
[cli_6]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 6
BLACS ERROR 'Invalid context handle: 0'
from {-1,-1}, pnum=5, Contxt=-1, on line 38 of file 'BI_BlacsErr.c'.
[cli_5]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 5
BLACS ERROR 'Invalid context handle: 0'
from {-1,-1}, pnum=1, Contxt=-1, on line 38 of file 'BI_BlacsErr.c'.
[cli_1]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 1
BLACS ERROR 'Invalid context handle: 0'
from {-1,-1}, pnum=3, Contxt=-1, on line 38 of file 'BI_BlacsErr.c'.
[cli_3]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 3
BLACS ERROR 'Invalid context handle: 0'
from {-1,-1}, pnum=
4, Contxt=-1, on line 38 of file 'BI_BlacsErr.c'.
[cli_4]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 4
BLACS ERROR 'Invalid context handle: 0'
from {-1,-1}, pnum=7, Contxt=-1, on line 38 of file 'BI_BlacsErr.c'.
[cli_7]: aborting job:
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 7
rank 6 in job 1 athena.cs.siu.edu_44953 caused collective abort of all ranks
exit status of rank 6: return code 1
rank 5 in job 1 athena.cs.siu.edu_44953 caused collective abort of all ranks
exit status of rank 5: return code 1
rank 4 in job 1 athena.cs.siu.edu_44953 caused collective abort of all ranks
exit status of rank 4: return code 1
rank 3 in job 1 athena.cs.siu.edu_44953 caused collective abort of all ranks
exit status of rank 3: return code 1
rank 2 in job 1 athena.cs.siu.edu_44953 caused collective abort of all ranks
exit status of rank 2: return code 1
rank 1 in job 1 athena.cs.siu.edu_44953 caused collective abort of all ranks
exit status of rank 1: return code 1
Hope you can help>
Thanks
Bruce