[packages/GPI2] - up to 1.2.0 - updated nosse,format patches - package gaspi_logger only on x86_64 (precompiled bina
qboosh
qboosh at pld-linux.org
Wed Jun 17 16:59:49 CEST 2015
commit 3ff436a1923961186648e64c1f369c50dc48ac50
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jun 17 17:01:06 2015 +0200
- up to 1.2.0
- updated nosse,format patches
- package gaspi_logger only on x86_64 (precompiled binary)
GPI2-format.patch | 16 ++++++++--------
GPI2-nosse.patch | 12 ++++++------
GPI2.spec | 24 +++++++++++++++++-------
3 files changed, 31 insertions(+), 21 deletions(-)
---
diff --git a/GPI2.spec b/GPI2.spec
index f4b90b6..ea2ce9b 100644
--- a/GPI2.spec
+++ b/GPI2.spec
@@ -1,18 +1,22 @@
# TODO: CUDA, MPI, Load Leveler(?)
-# - find gaspi_logger sources and compile it
#
# Conditional build:
%bcond_without f90 # Fortran bindings
+%bcond_without logger # gaspi_logger utility
#
+%ifnarch %{x8664}
+# no sources, only x86_64 binary included
+%undefine with_logger
+%endif
Summary: GPI-2 - API for asynchronous communication
Summary(pl.UTF-8): GPI-2 - API do komunikacji asynchronicznej
Name: GPI2
-Version: 1.1.1
+Version: 1.2.0
Release: 0.1
License: GPL v3
Group: Applications
Source0: https://www.openfabrics.org/downloads/gpi2/%{name}-%{version}.tar.gz
-# Source0-md5: 83598c7cfacf5b47892af667729a111b
+# Source0-md5: 985ef97215563f5af5e71833a490ef97
Patch0: %{name}-nosse.patch
Patch1: %{name}-format.patch
URL: http://www.gpi-site.com/gpi2/
@@ -20,8 +24,6 @@ BuildRequires: doxygen
%{?with_f90:BuildRequires: gcc-fortran >= 5:4.0}
BuildRequires: libibverbs-devel >= 1.1.6
Requires: libibverbs >= 1.1.6
-# FIXME: gaspi_logger sources are missing
-ExclusiveArch: %{ix86} %{x8664}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -46,9 +48,11 @@ skalowalny i odporny na awarie interfejs do aplikacji równoległych.
%patch0 -p1
%patch1 -p1
+%if %{without logger}
# precompiled binaries
# FIXME: sources are missing
-#%{__rm} bin/gaspi_logger
+%{__rm} bin/gaspi_logger
+%endif
%build
%{__make} clean
@@ -71,7 +75,10 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}}
install bin/gaspi_run.ssh $RPM_BUILD_ROOT%{_bindir}/gaspi_run
-install bin/ssh.spawner bin/gaspi_cleanup bin/gaspi_logger $RPM_BUILD_ROOT%{_bindir}
+install bin/ssh.spawner bin/gaspi_cleanup $RPM_BUILD_ROOT%{_bindir}
+%if %{with logger}
+install bin/gaspi_logger $RPM_BUILD_ROOT%{_bindir}
+%endif
cp -pr include $RPM_BUILD_ROOT%{_includedir}
cp -p lib64/lib* $RPM_BUILD_ROOT%{_libdir}
@@ -82,12 +89,15 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc README docs/html
%attr(755,root,root) %{_bindir}/gaspi_cleanup
+%if %{with logger}
%attr(755,root,root) %{_bindir}/gaspi_logger
+%endif
%attr(755,root,root) %{_bindir}/gaspi_run
%attr(755,root,root) %{_bindir}/ssh.spawner
%{_libdir}/libGPI2.a
%{_libdir}/libGPI2-dbg.a
%{_includedir}/GASPI.h
+%{_includedir}/GASPI_Ext.h
%{_includedir}/GASPI_GPU.h
%{_includedir}/GASPI_Threads.h
%{_includedir}/PGASPI.h
diff --git a/GPI2-format.patch b/GPI2-format.patch
index ce4ebae..caa52d2 100644
--- a/GPI2-format.patch
+++ b/GPI2-format.patch
@@ -1,11 +1,11 @@
---- GPI2-1.1.0/src/GPI2_Logger.c.orig 2014-06-18 21:42:30.000000000 +0200
-+++ GPI2-1.1.0/src/GPI2_Logger.c 2014-09-03 17:47:28.132279202 +0200
-@@ -191,7 +191,7 @@
- vsnprintf (buf + sl, 1024 - sl, fmt, ap);
- va_end (ap);
+--- GPI2-1.2.0/src/GPI2_Logger.c.orig 2015-06-16 21:56:40.249062867 +0200
++++ GPI2-1.2.0/src/GPI2_Logger.c 2015-06-16 21:58:07.382392548 +0200
+@@ -93,7 +93,7 @@
-- fprintf (stdout, buf);
-+ fputs (buf, stdout);
+ if( ! glb_gaspi_init )
+ {
+- fprintf(stdout, buf);
++ fputs(buf, stdout);
fflush (stdout);
-
goto endL;
+ }
diff --git a/GPI2-nosse.patch b/GPI2-nosse.patch
index 98da6f9..49a97df 100644
--- a/GPI2-nosse.patch
+++ b/GPI2-nosse.patch
@@ -1,5 +1,5 @@
---- GPI2-1.1.0/src/GPI2_Utility.h.orig 2014-09-03 17:40:08.285630994 +0200
-+++ GPI2-1.1.0/src/GPI2_Utility.h 2014-09-03 17:36:54.835639111 +0200
+--- GPI2-1.2.0/src/GPI2_Utility.h.orig 2015-05-13 17:42:36.000000000 +0200
++++ GPI2-1.2.0/src/GPI2_Utility.h 2015-06-16 21:56:09.572397490 +0200
@@ -25,7 +25,6 @@
#include <stdlib.h>
#include <stdio.h>
@@ -7,12 +7,12 @@
-#include <xmmintrin.h>
#ifdef DEBUG
- #define gaspi_print_error(msg, ...) \
-@@ -51,7 +50,12 @@
+ #include "GPI2.h"
+@@ -56,7 +55,12 @@
#ifdef MIC
- #define gaspi_delay() _mm_delay_32(32)
+ #define gaspi_delay() _mm_delay_32(32)
#else
--#define gaspi_delay() _mm_pause()
+-#define gaspi_delay() _mm_pause()
+#if defined(__i386__) || defined(__x86_64__)
+#define gaspi_delay() __builtin_ia32_pause()
+#else
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/GPI2.git/commitdiff/3ff436a1923961186648e64c1f369c50dc48ac50
More information about the pld-cvs-commit
mailing list