Add patch to make headers usable on ARM
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1027199 Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
This commit is contained in:
parent
b8066ccd22
commit
5a7b8168bc
27
arm-nosse2.patch
Normal file
27
arm-nosse2.patch
Normal file
@ -0,0 +1,27 @@
|
||||
--- cl.hpp.orig 2014-04-25 09:53:03.029286394 +0200
|
||||
+++ cl.hpp 2014-04-25 09:55:06.330122827 +0200
|
||||
@@ -212,8 +212,11 @@
|
||||
#if defined(linux) || defined(__APPLE__) || defined(__MACOSX)
|
||||
#include <alloca.h>
|
||||
|
||||
+#ifdef __SSE2__
|
||||
#include <emmintrin.h>
|
||||
#include <xmmintrin.h>
|
||||
+#endif // __SSE2__
|
||||
+
|
||||
#endif // linux
|
||||
|
||||
#include <cstring>
|
||||
@@ -1035,7 +1038,12 @@
|
||||
#endif // !_WIN32
|
||||
}
|
||||
|
||||
+#ifdef __SSE2__
|
||||
inline void fence() { _mm_mfence(); }
|
||||
+#else
|
||||
+ inline void fence() {}
|
||||
+#endif
|
||||
+
|
||||
}; // namespace detail
|
||||
|
||||
|
@ -1,10 +1,11 @@
|
||||
Summary: Khronos OpenCL development headers
|
||||
Name: opencl-headers
|
||||
Version: 1.2
|
||||
Release: 3%{?dist}
|
||||
License: MIT
|
||||
URL: http://www.khronos.org/registry/cl/
|
||||
Summary: Khronos OpenCL development headers
|
||||
Name: opencl-headers
|
||||
Version: 1.2
|
||||
Release: 4%{?dist}
|
||||
License: MIT
|
||||
URL: http://www.khronos.org/registry/cl/
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: http://www.khronos.org/registry/cl/api/1.2/opencl.h
|
||||
Source1: http://www.khronos.org/registry/cl/api/1.2/cl_platform.h
|
||||
Source2: http://www.khronos.org/registry/cl/api/1.2/cl.h
|
||||
@ -16,13 +17,19 @@ Source7: http://www.khronos.org/registry/cl/api/1.2/cl_gl.h
|
||||
Source8: http://www.khronos.org/registry/cl/api/1.2/cl_gl_ext.h
|
||||
Source9: http://www.khronos.org/registry/cl/api/1.2/cl.hpp
|
||||
|
||||
Patch0: arm-nosse2.patch
|
||||
|
||||
|
||||
%description
|
||||
Khronos OpenCL development headers
|
||||
|
||||
|
||||
%prep
|
||||
%patch0 -b .arm-nosse2
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_includedir}/CL/
|
||||
cp \
|
||||
@ -52,6 +59,9 @@ cp \
|
||||
%{_includedir}/CL/cl.hpp
|
||||
|
||||
%changelog
|
||||
* Fri Apr 25 2014 Fabian Deutsch <fabiand@fedoraproject.org> - 1.2-4
|
||||
- Add patch for cl.hpp to be usable on arm rhbz#1027199
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user