From: Alastair McKinstry Date: Mon, 28 May 2018 18:46:30 +0000 (+0100) Subject: powerpc X-Git-Tag: archive/raspbian/3.1.0-6+rpi1~1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=85e5c99992e0b5a8cd99ff38b0d2a5fa85ab0788;p=openmpi.git powerpc Gbp-Pq: Name powerpc.patch --- diff --git a/opal/include/opal/sys/powerpc/atomic.h b/opal/include/opal/sys/powerpc/atomic.h index 060331ef..0a7895c8 100644 --- a/opal/include/opal/sys/powerpc/atomic.h +++ b/opal/include/opal/sys/powerpc/atomic.h @@ -27,6 +27,13 @@ * On powerpc ... */ +/* Hack on Debian. See: https://github.com/open-mpi/ompi/issues/2055 + * -- amck, 2016-09-05 + */ +#undef OPAL_GCC_INLINE_ASSEMBLY +#define OPAL_GCC_INLINE_ASSEMBLY 1 + + #define MB() __asm__ __volatile__ ("sync" : : : "memory") #define RMB() __asm__ __volatile__ ("lwsync" : : : "memory") #define WMB() __asm__ __volatile__ ("lwsync" : : : "memory")