From 8bdc40b106896ed04012209db8024c9755747918 Mon Sep 17 00:00:00 2001 From: John Pennycook Date: Wed, 2 Sep 2020 11:12:31 -0400 Subject: [PATCH 1/4] [SYCL] Add is_native_function_object trait These traits were mentioned in the GroupAlgorithms extension and the SYCL 2020 provisional specification, but weren't implemented anywhere. Signed-off-by: John Pennycook --- .../CL/sycl/ONEAPI/group_algorithm.hpp | 17 +++++++++++++++ sycl/test/group-algorithm/traits.cpp | 21 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 sycl/test/group-algorithm/traits.cpp diff --git a/sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp b/sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp index d93b068c09378..d6d7e9a39a137 100644 --- a/sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp +++ b/sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp @@ -190,6 +190,23 @@ using EnableIfIsNonNativeOp = cl::sycl::detail::enable_if_t< !cl::sycl::detail::is_native_op::value, T>; +template struct is_native_function_object : std::false_type {}; + +template