<div>Thanks for your advice. But to be honest I do not know much about how our model uses MPI.</div>
<div>To make the model run, what I usually do related to MPI is to set MPI lib , MPI include, and mpirun path right in the jobscript.</div>
<div>I guess I need to modify the configure file according what you says. Any further advice on that? I can provide you files if needed.</div>
<div> </div>
<div>Thanks very much.</div>
<div> </div>
<div>Rui<br></div>
<div class="gmail_quote">On Fri, Jul 16, 2010 at 9:29 AM, Anthony Chan <span dir="ltr">&lt;<a href="mailto:chan@mcs.anl.gov">chan@mcs.anl.gov</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>You should use MPI compiler wrapper (mpicc, mpif90...) to compile/link<br>your app.  If not, you need to link with all MPICH2 supported libraries<br>
by hand, e.g. -lpthread.   Add -show to the MPI wrapper to see what the<br>supported libraries are.<br><br>A.Chan<br>
<div>
<div></div>
<div class="h5">----- &quot;Rui Mei&quot; &lt;<a href="mailto:meir02ster@gmail.com">meir02ster@gmail.com</a>&gt; wrote:<br><br>&gt; Hi, all,<br>&gt;<br>&gt; I sent a post on problems with installation of MPICH on SGI under my<br>
&gt; local<br>&gt; account one month ago. Thanks to your help, it is fixed now. I am able<br>&gt; to<br>&gt; install it with those commands:<br>&gt;<br>&gt; ./configure --prefix=/u/home/rum06003/mpi --with-device=ch3:sock 2&gt;&amp;1<br>
&gt; | tee<br>&gt; c.txt<br>&gt;<br>&gt; make 2&gt;&amp;1 | tee m.txt<br>&gt;<br>&gt; make install 2&gt;&amp;1 | tee mi.txt.<br>&gt;<br>&gt; Now the problem is that when I run our research model, it fails in<br>&gt; the<br>
&gt; configure process and part of the error message is as follows, related<br>&gt; to<br>&gt; MPI. But there was no error message during MPI installation. Thanks<br>&gt; if<br>&gt; someone can offer some advice on this issue.<br>
&gt;<br>&gt; Rui<br>&gt;<br>&gt; .intr.o -L/opt/i/netcdf/lib -lnetcdf -static-intel<br>&gt; -L/u/home/rum06003/mpi2/lib -lmpich<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(commutil.o)(.text+0x13a2): In<br>&gt; function<br>
&gt; `MPIR_Get_contextid&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(commutil.o)(.text+0x13f2): In<br>&gt; function<br>&gt; `MPIR_Get_contextid&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(commutil.o)(.text+0x2ad2): In<br>&gt; function<br>&gt; `MPIR_Get_intercomm_contextid&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(commutil.o)(.text+0x2b22): In<br>
&gt; function<br>&gt; `MPIR_Get_intercomm_contextid&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x4182): In<br>&gt; function<br>&gt; `MPIR_Err_return_comm&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x41d2): In<br>&gt; function<br>&gt; `MPIR_Err_return_comm&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x43d2): In<br>&gt; function<br>&gt; `MPIR_Err_return_win&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x4422): In<br>
&gt; function<br>&gt; `MPIR_Err_return_win&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x47d2): In<br>&gt; function<br>&gt; `MPIR_Nest_decr_export&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x4832): In<br>&gt; function<br>&gt; `MPIR_Nest_decr_export&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x48e2): In<br>&gt; function<br>&gt; `MPIR_Nest_incr_export&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(errutil.o)(.text+0x4942): In<br>
&gt; function<br>&gt; `MPIR_Nest_incr_export&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x522): In<br>&gt; function<br>&gt; `MPIR_Init_thread&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x562): In<br>&gt; function<br>&gt; `MPIR_Init_thread&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x6c2): In<br>&gt; function<br>&gt; `MPIR_Thread_CS_Finalize&#39;:<br>&gt; : undefined reference to `pthread_key_delete&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x6f2): In<br>
&gt; function<br>&gt; `MPIR_Thread_CS_Finalize&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x752): In<br>&gt; function<br>&gt; `MPIR_Thread_CS_Finalize&#39;:<br>
&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x762): In<br>&gt; function<br>&gt; `MPIR_Thread_CS_Finalize&#39;:<br>&gt; : undefined reference to `pthread_key_delete&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x7b2): In<br>&gt; function<br>&gt; `MPIR_Thread_CS_Finalize&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0x802): In<br>
&gt; function<br>&gt; `MPIR_Thread_CS_Init&#39;:<br>&gt; : undefined reference to `pthread_key_create&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0xb42): In<br>&gt; function<br>&gt; `PMPI_Init_thread&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0xb92): In<br>&gt; function<br>&gt; `PMPI_Init_thread&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0xc62): In<br>&gt; function<br>&gt; `PMPI_Init_thread&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0xcb2): In<br>
&gt; function<br>&gt; `PMPI_Init_thread&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0xcf2): In<br>&gt; function<br>&gt; `PMPI_Init_thread&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(initthread.o)(.text+0xd42): In<br>&gt; function<br>&gt; `PMPI_Init_thread&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(recv.o)(.text+0x2a2): In<br>&gt; function<br>&gt; `PMPI_Recv&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(recv.o)(.text+0x372): In<br>
&gt; function<br>&gt; `PMPI_Recv&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(recv.o)(.text+0x3c2): In<br>&gt; function<br>&gt; `PMPI_Recv&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(recv.o)(.text+0x402): In<br>&gt; function<br>&gt; `PMPI_Recv&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(send.o)(.text+0x292): In<br>
&gt; function<br>&gt; `PMPI_Send&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(send.o)(.text+0x362): In<br>&gt; function<br>&gt; `PMPI_Send&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(send.o)(.text+0x3b2): In<br>&gt; function<br>&gt; `PMPI_Send&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(send.o)(.text+0x3f2): In<br>
&gt; function<br>&gt; `PMPI_Send&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(mpid_type_debug.o)(.text+0x17f2):<br>&gt; In<br>&gt; function `MPIDI_Datatype_printf&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(mpid_type_debug.o)(.text+0x1842):<br>&gt; In<br>&gt; function `MPIDI_Datatype_printf&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_handle_recv_req.o)(.text+0x2b22):<br>&gt; In function `MPIDI_CH3_ReqHandler_AccumRespDerivedDTComplete&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_handle_recv_req.o)(.text+0x2b72):<br>
&gt; In function `MPIDI_CH3_ReqHandler_AccumRespDerivedDTComplete&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_handle_recv_req.o)(.text+0x3402):<br>&gt; In function `MPIDI_CH3_ReqHandler_PutAccumRespComplete&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_handle_recv_req.o)(.text+0x3452):<br>&gt; In function `MPIDI_CH3_ReqHandler_PutAccumRespComplete&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_rma_sync.o)(.text+0x2a62):<br>&gt; In<br>&gt; function `MPIDI_CH3_PktHandler_Accumulate&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_rma_sync.o)(.text+0x2ab2):<br>
&gt; In<br>&gt; function `MPIDI_CH3_PktHandler_Accumulate&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_rma_sync.o)(.text+0xc542):<br>&gt; In<br>&gt; function `MPIDI_Win_complete&#39;:<br>
&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_rma_sync.o)(.text+0xc592):<br>&gt; In<br>&gt; function `MPIDI_Win_complete&#39;:<br>&gt; : undefined reference to `pthread_setspecific&#39;<br>
&gt; /u/home/rum06003/mpi2/lib/libmpich.a(ch3u_rma_sync.o)(.text+0xd732):<br>&gt; In<br>&gt; function `MPIDI_Win_post&#39;:<br>&gt; : undefined reference to `pthread_getspecific&#39;<br>&gt; etc .................<br>&gt;<br>
</div></div>&gt; _______________________________________________<br>&gt; mpich-discuss mailing list<br>&gt; <a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br>&gt; <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
_______________________________________________<br>mpich-discuss mailing list<br><a href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</a><br><a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br>
</blockquote></div><br>