Update to 1.8.8
- Drop atomic patch applied upstream
This commit is contained in:
parent
7ca062b0d4
commit
8b95444d13
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,3 +27,4 @@ openmpi-1.4.1-RH.tar.bz2
|
||||
/openmpi-1.8.5.tar.bz2
|
||||
/openmpi-1.8.6.tar.bz2
|
||||
/openmpi-1.8.7.tar.bz2
|
||||
/openmpi-1.8.8.tar.bz2
|
||||
|
@ -1,60 +0,0 @@
|
||||
--- openmpi-v1.8.4-134-g9ad2aa8/opal/include/opal/sys/ia32/atomic.h.orig 2015-03-24 19:21:55.000000000 -0600
|
||||
+++ openmpi-v1.8.4-134-g9ad2aa8/opal/include/opal/sys/ia32/atomic.h 2015-03-27 08:09:41.140745019 -0600
|
||||
@@ -1,3 +1,4 @@
|
||||
+/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
|
||||
/*
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
@@ -10,6 +11,8 @@
|
||||
* Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2007-2010 Oracle and/or its affiliates. All rights reserved.
|
||||
+ * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
||||
+ * reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@@ -155,6 +158,25 @@
|
||||
|
||||
#if OMPI_GCC_INLINE_ASSEMBLY
|
||||
|
||||
+#define OPAL_HAVE_ATOMIC_SWAP_32 1
|
||||
+
|
||||
+static inline int32_t opal_atomic_swap_32( volatile int32_t *addr,
|
||||
+ int32_t newval)
|
||||
+{
|
||||
+ int32_t oldval;
|
||||
+
|
||||
+ __asm__ __volatile__("xchg %1, %0" :
|
||||
+ "=r" (oldval), "=m" (*addr) :
|
||||
+ "0" (newval), "m" (*addr) :
|
||||
+ "memory");
|
||||
+ return oldval;
|
||||
+}
|
||||
+
|
||||
+#endif /* OPAL_GCC_INLINE_ASSEMBLY */
|
||||
+
|
||||
+
|
||||
+#if OPAL_GCC_INLINE_ASSEMBLY
|
||||
+
|
||||
/**
|
||||
* atomic_add - add integer to atomic variable
|
||||
* @i: integer value to add
|
||||
@@ -167,7 +189,7 @@
|
||||
int ret = i;
|
||||
__asm__ __volatile__(
|
||||
SMPLOCK "xaddl %1,%0"
|
||||
- :"=m" (*v), "+r" (ret)
|
||||
+ :"+m" (*v), "+r" (ret)
|
||||
:"m" (*v)
|
||||
:"memory", "cc"
|
||||
);
|
||||
@@ -187,7 +209,7 @@
|
||||
int ret = -i;
|
||||
__asm__ __volatile__(
|
||||
SMPLOCK "xaddl %1,%0"
|
||||
- :"=m" (*v), "+r" (ret)
|
||||
+ :"+m" (*v), "+r" (ret)
|
||||
:"m" (*v)
|
||||
:"memory", "cc"
|
||||
);
|
@ -21,7 +21,7 @@
|
||||
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
||||
|
||||
Name: openmpi%{?_cc_name_suffix}
|
||||
Version: 1.8.7
|
||||
Version: 1.8.8
|
||||
Release: 1%{?dist}
|
||||
Summary: Open Message Passing Interface
|
||||
Group: Development/Libraries
|
||||
@ -32,8 +32,6 @@ URL: http://www.open-mpi.org/
|
||||
Source0: http://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-%{version}.tar.bz2
|
||||
Source1: openmpi.module.in
|
||||
Source2: macros.openmpi
|
||||
# Upstream patch to fix atomics on 32bit
|
||||
Patch0: openmpi-atomic.patch
|
||||
|
||||
BuildRequires: gcc-gfortran
|
||||
#sparc64 don't have valgrind
|
||||
@ -111,7 +109,6 @@ Contains development wrapper for compiling Java with openmpi.
|
||||
|
||||
%prep
|
||||
%setup -q -n openmpi-%{version}
|
||||
%patch0 -p1 -b .atomic
|
||||
|
||||
%build
|
||||
./configure --prefix=%{_libdir}/%{name} \
|
||||
@ -234,6 +231,10 @@ make check
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 10 2015 Orion Poplawski <orion@cora.nwra.com> 1.8.8-1
|
||||
- Update to 1.8.8
|
||||
- Drop atomic patch applied upstream
|
||||
|
||||
* Wed Jul 15 2015 Orion Poplawski <orion@cora.nwra.com> 1.8.7-1
|
||||
- Update to 1.8.7
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user