forked from pool/mvapich3
Nicolas Morey
b3c4954942
- Update to v3.0 GA - Cleanup spec file - standard flavour has been removed and has been replaced by the ucx flavour - Drop 32b arch support - Disable static libraries for non-HPC build - No need to pull ucx nor libfabric-devel for mvapich3-devel - Replace 0001-fix-control-reaches-end-of-non-void-function.patch with upstream: - mpi-coll-missing-return.patch - mpl-warnings-missing-return.patch - Add: - mvapich3-s390_get_cycles.patch for s390 support - pass-correct-size-to-snprintf.patch to fix potential overflows - autoconf-pull-dynamic-and-not-static-libs-from-pkg-config.patch to fix libfabric sub dependencies being unnecessary pulled - config-replace-AC_TRY_-COMPILE-LINK-RUN.patch to replace osolete autoconf macros OBS-URL: https://build.opensuse.org/request/show/1148143 OBS-URL: https://build.opensuse.org/package/show/science:HPC/mvapich3?expand=0&rev=4
28 lines
928 B
Diff
28 lines
928 B
Diff
commit e83d26fa6213f1ec9c506c43029ed243f89cd63e
|
|
Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
Date: Thu Jun 8 15:11:12 2017 +0200
|
|
|
|
mvapich3-s390_get_cycles
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
|
|
diff --git src/mpid/ch3/channels/common/include/mvp_clock.h src/mpid/ch3/channels/common/include/mvp_clock.h
|
|
index 2f7e08ede22f..38bc906d3e67 100644
|
|
--- src/mpid/ch3/channels/common/include/mvp_clock.h
|
|
+++ src/mpid/ch3/channels/common/include/mvp_clock.h
|
|
@@ -93,6 +93,14 @@ static inline cycles_t get_cycles()
|
|
return ret;
|
|
}
|
|
|
|
+#elif defined(__s390__) || defined(__s390x__)
|
|
+typedef unsigned long cycles_t;
|
|
+static inline cycles_t get_cycles()
|
|
+{
|
|
+ unsigned long clk;
|
|
+ asm volatile("stck %0" : "=Q" (clk) : : "cc");
|
|
+ return clk >> 2;
|
|
+}
|
|
#else
|
|
#warning get_cycles not implemented for this architecture: attempt asm/timex.h
|
|
#include <asm/timex.h>
|