<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>Hi Åsmund,</div>
<div><br>
</div>
<div>Thank you for emailing us, but this email needs to go to MVAPICH team. The correct mailing list will be
<a href="mailto:mvapich-discuss@cse.ohio-state.edu">mvapich-discuss@cse.ohio-state.edu</a> in <a href="http://mvapich.cse.ohio-state.edu/mailinglists/">http://mvapich.cse.ohio-state.edu/mailinglists/</a>.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sangmin</div>
<div><br>
</div>
<br>
<div>
<div>On Sep 9, 2014, at 2:32 PM, Åsmund Ervik <<a href="mailto:asmund.ervik@ntnu.no">asmund.ervik@ntnu.no</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hello all,<br>
<br>
I'm compiling mvapich2 on an old quirky cluster where I'm not root. After having problems with shared memory using mvapich2 with plain configure/make (I had to disable shared memory for any jobs doing allreduce), I decided to try to configure/make using --with-shared-memory=sysv
 . This failed at the "make" step, with the following error:<br>
  CC       src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.lo<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c: In function 'mv2_allocate_shm_local':<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c:182: error: 'O_CREAT' undeclared (first use in this function)<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c:182: error: (Each undeclared identifier is reported only once<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c:182: error: for each function it appears in.)<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c:182: error: 'O_RDWR' undeclared (first use in this function)<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c:182: error: 'O_EXCL' undeclared (first use in this function)<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c: In function 'mv2_rma_allocate_shm':<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c:375: error: 'O_CREAT' undeclared (first use in this function)<br>
src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.c:375: error: 'O_RDWR' undeclared (first use in this function)<br>
make[2]: *** [src/mpid/ch3/channels/mrail/src/gen2/rdma_iba_1sc.lo] Error 1<br>
<br>
The full configure command was<br>
./configure --prefix=/home/asmunder/mvapich2-2.0 --with-ib-libpath=/cvos/shared/apps/ofed/1.3.1/lib64/ --with-ib-include=/cvos/shared/apps/ofed/1.3.1/include --with-shared-memory=sysv --enable-libpci<br>
<br>
<br>
In the end I traced this down to lines 22 and 26 in rdma_iba_1sc.c , which is an #ifdef that only includes fcntl.h (containing O_CREAT et al) when the flag _SMP_LIMIC_ is defined. Obviously this flag was not defined in my case. I removed these two lines, and
 now configure/make works fine. <br>
<br>
Also, in the end, I found that this flag was not necessary, and that the correct and much simpler solution was to set the environment variable MV2_SHMEM_DIR to the correct path.<br>
<br>
Regards,<br>
Åsmund<br>
_______________________________________________<br>
discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote>
</div>
<br>
</body>
</html>