opencl-headers/arm-nosse2.patch
Fabian Deutsch 5a7b8168bc 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>
2014-04-25 10:00:38 +02:00

28 lines
520 B
Diff

--- 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