[mpich-discuss] unable to bind socket to port

Jed Brown jed at jedbrown.org
Fri May 16 22:07:39 CDT 2014


张国熙 <altriaex86 at gmail.com> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20140516/85ccd7c0/attachment.sig>


More information about the discuss mailing list