Explorar el Código

Define STARPU_RMB/WMB on archs other than x86/ppc

Samuel Thibault hace 12 años
padre
commit
323d3c32d2
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      include/starpu_util.h

+ 3 - 0
include/starpu_util.h

@@ -181,6 +181,9 @@ STARPU_ATOMIC_SOMETHING(or, old | value)
 #elif defined(__ppc__) || defined(__ppc64__)
 #define STARPU_RMB() __asm__ __volatile__("sync" ::: "memory")
 #define STARPU_WMB() __asm__ __volatile__("sync" ::: "memory")
+#else
+#define STARPU_RMB() STARPU_SYNCHRONIZE()
+#define STARPU_WMB() STARPU_SYNCHRONIZE()
 #endif
 
 #ifdef __cplusplus