On 5/28/2018 11:58 AM, Marco Atzeri wrote:
On 5/24/2018 11:07 AM, Marco Atzeri wrote:
On 5/23/2018 2:58 PM, Gilles Gouaillardet wrote:
Marco,

Have you tried to build Open MPI with an external (e.g. Cygwin provided) libevent library ?
If that works, I think that would be the preferred method.

Cheers,

Gilles

I will try.
If I remember right there was an issue in the past as
somewhere a WIN32 was defined an it was screwing the build.

Regards
Marco


I am validating a patch workaround to see if it works with both
internal and external libevent.

The build with external libevent passed all
osu-micro-benchmarks-5.4.2 MPI tests


attached patch allows build of 3.1.0 on cygwin 32 bit
and 64 bit versions, configured with

                --with-libevent=external \
                --disable-mca-dso \
                --disable-sysv-shmem \
                --enable-cxx-exceptions \
                --with-threads=posix \
                --without-cs-fs \
                --with-mpi-param_check=always \
                --enable-contrib-no-build=vt,libompitrace \

--enable-mca-no-build=paffinity,installdirs-windows,timer-windows,shmem-sysv,patcher

the 64 bit version also use
  --enable-builtin-atomics

Tested with libevent 2.0.22-1

Regards
Marco

--- origsrc/openmpi-3.1.0/opal/mca/event/external/external.h    2018-05-07 
22:42:22.000000000 +0200
+++ src/openmpi-3.1.0/opal/mca/event/external/external.h        2018-05-25 
19:54:58.710800500 +0200
@@ -22,6 +22,10 @@
 
 #include "opal_config.h"
 
+#if defined(__CYGWIN__) && defined(WIN32)
+#undef WIN32
+#endif 
+
 #include "event.h"
 #include "event2/event.h"
 #include "event2/thread.h"
_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/devel

Reply via email to