16 May
2014
16 May
'14
10:07 p.m.
张国熙 <[email protected]> writes:
Hi, all
I'm using SLEPc as an eigensolver, which implemented MPICH for multiprocess usage.
I compile SLEPc code into a .so library B.
My executable program A calls .so library B, and .so libraryB calls SLEPclibrary. I used to put MPI_Init() only in A. But it will got stuck.
Attach a debugger when it "gets stuck".
Then I try to put it in A,B( and C,SLEPc init will call this function).
SlepcInitialize checks (via PetscInitialize) whether MPI has been initialized. You can call MPI_Init before all of them, but you still have to call SlepcInitialize collectively.