|
@@ -598,6 +598,17 @@ STARPU_ATOMIC_SOMETHING64(or, old | value)
|
|
#define STARPU_WMB() STARPU_SYNCHRONIZE()
|
|
#define STARPU_WMB() STARPU_SYNCHRONIZE()
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#if defined(__i386__) || defined(__x86_64__)
|
|
|
|
+#define STARPU_CACHELINE_SIZE 64
|
|
|
|
+#elif defined(__ppc__) || defined(__ppc64__) || defined(__ia64__)
|
|
|
|
+#define STARPU_CACHELINE_SIZE 128
|
|
|
|
+#elif defined(__s390__) || defined(__s390x__)
|
|
|
|
+#define STARPU_CACHELINE_SIZE 256
|
|
|
|
+#else
|
|
|
|
+/* Conservative default */
|
|
|
|
+#define STARPU_CACHELINE_SIZE 1024
|
|
|
|
+#endif
|
|
|
|
+
|
|
#ifdef _WIN32
|
|
#ifdef _WIN32
|
|
/* Try to fetch the system definition of timespec */
|
|
/* Try to fetch the system definition of timespec */
|
|
#include <sys/types.h>
|
|
#include <sys/types.h>
|