Thanks so much, Pavan.<div>If I only use shared memory communication among processes on a single node, how can I configure the mpich2.1.4 (except --with-pm=gforker) in order to link libraries as little as possible?</div><div>
<br></div><div>- Clara<br><br><div class="gmail_quote">On Thu, Jun 23, 2011 at 10:33 PM, Pavan Balaji <span dir="ltr"><<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Please see "mpicc -show" for the list of libraries you need to link with.<br>
<br>
-- Pavan<div><div></div><div class="h5"><br>
<br>
On 06/23/2011 09:26 PM, clara wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
I am trying to write my makefile to build MPI programs, not use mpicc.<br>
<br>
The gcc command line and the output error messages are below, can anyone<br>
help me? Thanks.<br>
<br>
gcc -Wall -O3 -g -I/usr/include/mpich2 -o cpi cpi.c -L/usr/lib -lmpich<br>
<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trfree'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_env2str'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trlevel'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trvalid'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trmalloc'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trspace'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_env2range'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trcalloc'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_env2int'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trdump'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_putenv'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_env2bool'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trstrdup'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trrealloc'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_TrSetMaxMem'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trinit'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trDebugLevel'<br>
/usr/lib/libmpich.so: undefined reference to `MPL_trid'<br>
collect2: ld returned 1 exit status<br>
make: *** [mpi] Error 1<br>
<br>
-Clara<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
mpich-discuss mailing list<br>
<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">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/<u></u>mailman/listinfo/mpich-discuss</a><br>
</blockquote>
<br>
-- <br>
Pavan Balaji<br>
<a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
</blockquote></div><br></div>