summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime/files/patch-i386
blob: c38674cce06d20665d5008104767c27e4b5141d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
SSE2 is not enabled by default on BSDs

core/utilities/clflush.cpp:16:5: error: '_mm_clflush' needs target feature sse2
    _mm_clflush(ptr);
    ^

--- core/utilities/cpuintrinsics.cpp.orig	2020-01-23 10:09:13 UTC
+++ core/utilities/cpuintrinsics.cpp
@@ -12,6 +12,9 @@
 namespace NEO {
 namespace CpuIntrinsics {
 
+#ifdef __GNUC__
+__attribute__((target("sse2")))
+#endif
 void clFlush(void const *ptr) {
     _mm_clflush(ptr);
 }