aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/SYCL/InteropHeaders.h
diff options
context:
space:
mode:
authorGravatar mehdi-goli <mehdi.goli@codeplay.com>2020-11-02 11:13:37 +0000
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-11-12 01:50:28 +0000
commite24a1f57e35f3f3894a5612bb8b4e34bf68ebb26 (patch)
tree139bffe997b4d81877cf717ad292fa40baede126 /Eigen/src/Core/arch/SYCL/InteropHeaders.h
parent6961468915b4b3a1b96cbfcac18f533abd82c549 (diff)
[SYCL Function pointer Issue]: SYCL does not support function pointer inside the kernel, due to the portability issue of a function pointer and memory address space among host and accelerators. To fix the issue, function pointers have been replaced by function objects.
Diffstat (limited to 'Eigen/src/Core/arch/SYCL/InteropHeaders.h')
-rw-r--r--Eigen/src/Core/arch/SYCL/InteropHeaders.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/SYCL/InteropHeaders.h b/Eigen/src/Core/arch/SYCL/InteropHeaders.h
index 710059d50..10856ff5e 100644
--- a/Eigen/src/Core/arch/SYCL/InteropHeaders.h
+++ b/Eigen/src/Core/arch/SYCL/InteropHeaders.h
@@ -59,6 +59,9 @@ struct sycl_packet_traits : default_packet_traits {
HasIGammac = 0,
HasBetaInc = 0,
HasBlend = has_blend,
+ // This flag is used to indicate whether packet comparison is supported.
+ // pcmp_eq, pcmp_lt and pcmp_le should be defined for it to be true.
+ HasCmp = 1,
HasMax = 1,
HasMin = 1,
HasMul = 1,