Very new to parallel programming so need your help. I'm trying to solve a very large symmetric sparse general eigenvalue problem using extended eigen solver. I have no problem to do a smaller scale problem by one thread using "dfeat_scsrgv" subroutine. However, I have no clue on how to increase the speed by utilizing the parallel capability.
My system: Linux intel 64
Software: Intel ComposerXE 2013, mpich compiled by XE 2013
Here is what I did:
1. Compile: mpif90 -mkl=parallel -o test_mpi.x test_sparse_solver.f90
2. Run: mpiexec -np 8 ./test_mpi.x
The running itself was ok but my concern is if I really used the parallel capability. For a smaller problem with 2000 equations, using "-np 8" took longer time than "-np 1". I realized I might need to change the source code, but have no clue on where to start. Could you give me some quick reference to get it run parallelly? very much appriciate and thanks in advance.
Here is my source code: (FORTRAN 90)
!this routine test MKL sparse eigen solver
implicit real*8 (a-h,o-z)
real time_begin, time_end
read(98) n, na
read(98) n, nb
allocate (e(m0), x(n,m0))
write(10,*) 'mode',i,' Freq=', sqrt(e(i))*0.5/3.1415926535897932
print*,'Total CPU time=', time_end-time_begin