[petsc-users] running Petsc programs without a connection.

Matthew Knepley knepley at gmail.com
Thu Mar 26 07:35:19 CDT 2015


On Thu, Mar 26, 2015 at 2:15 AM, Sanjay Kharche <
Sanjay.Kharche at manchester.ac.uk> wrote:

>
> Dear All
>
> I have a fedora pc which some times cannot have an internet connection. I
> found that I can run non-Petsc MPI programs when it is not connected to the
> internet. However, when I try to run my Petsc based program without a
> connection, I get the following error. By googling a little bit, I found
> that the mpi launcher requires to log into each of the 4 procs the pc has,
> and may be using ssh. This or something else may or may not require an
> internet connection. In my present installation of petsc, I have downloaded
> and installed all required dependencies (blas, lapack, sundials) including
> mpich during the configure. I am using a makefile that I took from the ts
> examples for ex15.c where I changed the ex15 entry to sk2d (my program). I
> updated the petsc independent mpich to be the same version as the one I got
> with petsc.
>
> Is there a way of configuring or otherwise to get Petsc programs to run
> when I do not have an internet connection?
>
> the error:
>
> mpiexec -n 3 ./sk2d
> Fatal error in PMPI_Init_thread: Other MPI error, error stack:
> MPIR_Init_thread(498)..............:
> MPID_Init(187).....................: channel initialization failed
> MPIDI_CH3_Init(89).................:
> MPID_nem_init(320).................:
> MPID_nem_tcp_init(171).............:
> MPID_nem_tcp_get_business_card(418):
> MPID_nem_tcp_init(377).............: gethostbyname failed,
> sanjayslaptop.maths.liv.ac.uk (errno 2)
>

This is not PETSc, but rather the way MPICH is configured. I run using

  -n 3 -hosts localhost,localhost,localhost

and it will run fine disconnected.

Satish, is there a general fix?

  Thanks,

     Matt


>
> cheers
> Sanjay
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150326/2b015e26/attachment.html>


More information about the petsc-users mailing list