<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 26, 2015 at 2:15 AM, Sanjay Kharche <span dir="ltr"><<a href="mailto:Sanjay.Kharche@manchester.ac.uk" target="_blank">Sanjay.Kharche@manchester.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Dear All<br>
<br>
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.<br>
<br>
Is there a way of configuring or otherwise to get Petsc programs to run when I do not have an internet connection?<br>
<br>
the error:<br>
<br>
mpiexec -n 3 ./sk2d<br>
Fatal error in PMPI_Init_thread: Other MPI error, error stack:<br>
MPIR_Init_thread(498)..............:<br>
MPID_Init(187).....................: channel initialization failed<br>
MPIDI_CH3_Init(89).................:<br>
MPID_nem_init(320).................:<br>
MPID_nem_tcp_init(171).............:<br>
MPID_nem_tcp_get_business_card(418):<br>
MPID_nem_tcp_init(377).............: gethostbyname failed, <a href="http://sanjayslaptop.maths.liv.ac.uk" target="_blank">sanjayslaptop.maths.liv.ac.uk</a> (errno 2)<br></blockquote><div><br></div><div>This is not PETSc, but rather the way MPICH is configured. I run using</div><div><br></div><div> -n 3 -hosts localhost,localhost,localhost</div><div><br></div><div>and it will run fine disconnected.</div><div><br></div><div>Satish, is there a general fix?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
cheers<br>
<span class="HOEnZb"><font color="#888888">Sanjay<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>