<meta http-equiv="Content-Type" content="text/html; charset=utf-8">Try building MPICH with GCC, for which I know a POWER7 version exists. GCC supports inline asm properly and you can use the resulting library with XLC codes, thanks to the beauty of C ABI interoperability. For Fortran, use CC=gcc, FC=xlf_r. <div><br></div><div>Best,<span></span><br><div><br></div><div>Jeff <br><br>On Friday, January 23, 2015, "Antonio J. Peña" <<a href="mailto:apenya@mcs.anl.gov">apenya@mcs.anl.gov</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><br>
Hi Victor,<br>
<br>
Most likely your hardware or compiler does not support <span><span>atomic memory access</span></span>.
Unfortunately, our IB netmod uses these builtin functions. If you
have Mellanox InfiniBand, you can give a try to the MXM netmod.<br>
<br>
Best,<br>
Antonio<br>
<br>
<br>
On 01/23/2015 05:04 AM, Victor Vysotskiy wrote:<br>
</div>
<blockquote type="cite">
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<div style="font-family:Tahoma;font-size:13px">
<div>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">Hi, </p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">I am trying to
compile the latest MPICH3 snapshot on Power7/Linux
platform by using the XLF/XLC compiler suite v14.1.
The cluster is equipped with common IB hardware.
Unfortunately, the compilation failed with the
following error message:</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">lib/.libs/libmpi.a(lib_libmpi_la-ib_poll.o):
In function `MPID_nem_ib_drain_scq':</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x5bc4):
undefined reference to `__builtin_ctz'</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x5e90):
undefined reference to `__builtin_ctz'</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">lib/.libs/libmpi.a(lib_libmpi_la-ib_poll.o):
In function `MPID_nem_ib_cm_drain_scq$AF227_75':</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x7d7c):
undefined reference to `__builtin_ctz'</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x7e14):
undefined reference to `__builtin_ctz'</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x8040):
undefined reference to `__builtin_ctz'</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">lib/.libs/libmpi.a(lib_libmpi_la-ib_poll.o):src/mpid/ch3/channels/nemesis/netmod/ib/ib_poll.c:(.text+0x814c):
more undefined references to `__builtin_ctz' follow</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">For the configure's
options used please check the attached
'config.power7.linux.log' file.</p>
<div> </div>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">In addition, the
IBM compiler produces few warnings:</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">#1 </p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"src/mpid/ch3/channels/nemesis/netmod/ib/ib_ibcom.h",
line 169.39: 1506-1147 (W) The asm constraint "a" is
not supported.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"src/mpid/ch3/channels/nemesis/netmod/ib/ib_ibcom.h",
line 169.49: 1506-1147 (W) The asm constraint "d" is
not supported.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"src/mpid/ch3/channels/nemesis/netmod/ib/ib_reg_mr.c",
line 89.12: 1506-1332 (W) A function with return type
"void" may not return a value of type "void".</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"> 1500-064: (W)
The register name %rax is unknown.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"> 1500-064: (W)
The register name %rbx is unknown.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"> 1500-064: (W)
The register name %rcx is unknown.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"> 1500-064: (W)
The register name %rdx is unknown.</p>
<div><br>
</div>
<div>#2</div>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 45.9: 1506-236 (W) Macro name MAP_SHARED has been
redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 45.9: 1506-358 (I) "MAP_SHARED" is defined on
line 17 of /usr/include/asm-generic/mman-common.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 46.9: 1506-236 (W) Macro name MAP_PRIVATE has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 46.9: 1506-358 (I) "MAP_PRIVATE" is defined on
line 18 of /usr/include/asm-generic/mman-common.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 48.10: 1506-236 (W) Macro name MAP_TYPE has been
redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 48.10: 1506-358 (I) "MAP_TYPE" is defined on line
19 of /usr/include/asm-generic/mman-common.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 52.9: 1506-236 (W) Macro name MAP_FIXED has been
redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 52.9: 1506-358 (I) "MAP_FIXED" is defined on line
20 of /usr/include/asm-generic/mman-common.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 54.10: 1506-236 (W) Macro name MAP_FILE has been
redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 54.10: 1506-358 (I) "MAP_FILE" is defined on line
43 of /usr/include/asm-generic/mman-common.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 55.10: 1506-236 (W) Macro name MAP_ANONYMOUS has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 55.10: 1506-358 (I) "MAP_ANONYMOUS" is defined on
line 21 of /usr/include/asm-generic/mman-common.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 61.10: 1506-236 (W) Macro name MAP_GROWSDOWN has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 61.10: 1506-358 (I) "MAP_GROWSDOWN" is defined on
line 19 of /usr/include/asm/mman.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 62.10: 1506-236 (W) Macro name MAP_DENYWRITE has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 62.10: 1506-358 (I) "MAP_DENYWRITE" is defined on
line 20 of /usr/include/asm/mman.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 63.10: 1506-236 (W) Macro name MAP_EXECUTABLE has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 63.10: 1506-358 (I) "MAP_EXECUTABLE" is defined
on line 21 of /usr/include/asm/mman.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 64.10: 1506-236 (W) Macro name MAP_LOCKED has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 64.10: 1506-358 (I) "MAP_LOCKED" is defined on
line 17 of /usr/include/asm/mman.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 65.10: 1506-236 (W) Macro name MAP_NORESERVE has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 65.10: 1506-358 (I) "MAP_NORESERVE" is defined on
line 16 of /usr/include/asm/mman.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 66.10: 1506-236 (W) Macro name MAP_POPULATE has
been redefined.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">"/usr/include/bits/mman.h",
line 66.10: 1506-358 (I) "MAP_POPULATE" is defined on
line 26 of /usr/include/asm/mman.h.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">Is the error
message related to the warnings observed? Or, I simply
should avoid using the nemesis:ib channel? </p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">With best regards, </p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo">Victor.</p>
<p style="margin-right:0px;margin-left:0px;font-size:11px;font-family:Menlo"><br>
</p>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
discuss mailing list <a href="javascript:_e(%7B%7D,'cvml','discuss@mpich.org');" target="_blank">discuss@mpich.org</a>
To manage subscription options or unsubscribe:
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a></pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
<a href="javascript:_e(%7B%7D,'cvml','apenya@mcs.anl.gov');" target="_blank">apenya@mcs.anl.gov</a>
<a href="http://www.mcs.anl.gov/~apenya" target="_blank">www.mcs.anl.gov/~apenya</a></pre>
</div>
</blockquote></div></div><br><br>-- <br>Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a><br>