<html><head></head><body bgcolor="#FFFFFF"><div>It depends on whether you are linking your library statically or dynamically. If you are linking statically, the linker puts everything in one executable that is sent to all of the nodes. If you do it dynamically, you need to make sure your libraries are available on all of the nodes you will be using (usually by using something like NFS to mirror your home directory across the cluster. You will also need to make sure your environment is set up correctly to allow the libraries to be found on the remote process, usually via an environment variable such as LD_LIBRARY_PATH. </div><div><br></div><div>Wesley<br><br>On Jun 6, 2013, at 6:18 AM, Alejandro Allievi <<a href="mailto:alejandro.allievi@gmail.com">alejandro.allievi@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div dir="ltr">H<div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">i  </div><div><font face="tahoma, sans-serif"><br></font><div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">
When linking to personal libraries using MPICH2, how does each process access them in a distributed environment?? Does the linker actually </div><span style="font-size:13.333333969116211px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.18402862548828px">combines <div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">
everything </div>into a single<div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline"> executable </div></span><span style="font-size:13.333333969116211px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.18402862548828px">program<div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">
 and "sends a copy" of entire executable to each process even though not all processes may use the libraries?? Can somebody shed some light on the entire linking process??</div></span></div><div><span style="font-size:13.333333969116211px;color:rgb(0,0,0);font-family:sans-serif;line-height:19.18402862548828px"><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">
<br></div></span></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">Thanks for any help!!</div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">
<br></div></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">Alejandro</div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a></span><br><span>To manage subscription options or unsubscribe:</span><br><span><a href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></span></div></blockquote></body></html>