summaryrefslogtreecommitdiff
path: root/lang/intel-compute-runtime/files/patch-i386
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2019-12-13 05:34:59 +0000
committerJan Beich <jbeich@FreeBSD.org>2019-12-13 05:34:59 +0000
commit5fba554d35319484403c2517e7d9aff4e83e3f37 (patch)
tree95a509dbfdf5f2172dc87332e422286863222c16 /lang/intel-compute-runtime/files/patch-i386
parentUpdate finance/libofx to 0.9.15 (diff)
lang/compute-runtime: prefix package like other distributions
Compute runtime unlike Beignet maybe used by other CPU vendors for a common runtime used by GPGPU.
Notes
Notes: svn path=/head/; revision=519964
Diffstat (limited to 'lang/intel-compute-runtime/files/patch-i386')
-rw-r--r--lang/intel-compute-runtime/files/patch-i38618
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/intel-compute-runtime/files/patch-i386 b/lang/intel-compute-runtime/files/patch-i386
new file mode 100644
index 000000000000..05f80f8ab1c2
--- /dev/null
+++ b/lang/intel-compute-runtime/files/patch-i386
@@ -0,0 +1,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/clflush.cpp.orig 2019-11-29 14:23:34 UTC
++++ core/utilities/clflush.cpp
+@@ -12,6 +12,9 @@
+ namespace NEO {
+ namespace CpuIntrinsics {
+
++#ifdef __GNUC__
++__attribute__((target("sse2")))
++#endif
+ void clFlush(void const *ptr) {
+ _mm_clflush(ptr);
+ }