forked from pool/mvapich2
Nicolas Morey
13e60bd8b4
- mrail-fix-incompatible-pointer-issues.patch - util-add-missing-include.patch - psm-add-missing-declaration.patch - Refresh 0001-Drop-real128.patch to work with patch -p0 - Switch to autopatch OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich2?expand=0&rev=103
29 lines
926 B
Diff
29 lines
926 B
Diff
commit 55640b711726705a0127eb7ce767ef69e7642790
|
|
Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
Date: Thu Jun 8 15:14:01 2017 +0200
|
|
|
|
mvapich2 arm support
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
|
|
diff --git src/mpid/ch3/channels/common/include/mv2_clock.h src/mpid/ch3/channels/common/include/mv2_clock.h
|
|
index af8bb2b77d08..b73a4ffa2fc0 100644
|
|
--- src/mpid/ch3/channels/common/include/mv2_clock.h
|
|
+++ src/mpid/ch3/channels/common/include/mv2_clock.h
|
|
@@ -92,7 +92,14 @@ static inline cycles_t get_cycles()
|
|
|
|
return ret;
|
|
}
|
|
-
|
|
+#elif defined(__ARM_ARCH_7A__)
|
|
+typedef unsigned long long cycles_t;
|
|
+static inline cycles_t get_cycles(void)
|
|
+{
|
|
+ cycles_t clk;
|
|
+ asm volatile("mrrc p15, 0, %Q0, %R0, c14" : "=r" (clk));
|
|
+ return clk;
|
|
+}
|
|
#elif defined(__s390__) || defined(__s390x__)
|
|
typedef unsigned long cycles_t;
|
|
static inline cycles_t get_cycles()
|