Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates-src > by-pkgid > 6cd98c17a614186193001009f2531eb9 > files > 3

openmpi-4.0.1-1.2.mga7.src.rpm

diff --git a/opal/threads/thread_usage.h b/opal/threads/thread_usage.h
index 2ccaaf3..a27a7f2 100644
--- a/opal/threads/thread_usage.h
+++ b/opal/threads/thread_usage.h
@@ -126,8 +126,8 @@
 }
 #endif
 
-#if OPAL_HAVE_ATOMIC_MATH_64
 #if OMPI_ENABLE_THREAD_MULTIPLE
+#if OPAL_HAVE_ATOMIC_ADD_64
 static inline int64_t
 OPAL_THREAD_ADD64(volatile int64_t *addr, int delta)
 {
@@ -141,6 +141,7 @@
 
     return ret;
 }
+#endif
 #else
 static inline int64_t
 OPAL_THREAD_ADD64(volatile int64_t *addr, int delta)
@@ -150,7 +151,6 @@
     return ret;
 }
 #endif
-#endif
 
 #if OMPI_ENABLE_THREAD_MULTIPLE
 static inline size_t