Skip to content

Commit cea1bf9

Browse files
author
Sergey Kanaev
committed
[SYCL] Add interface to call host-interop-task
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent f37a294 commit cea1bf9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <CL/sycl/detail/os_util.hpp>
1717
#include <CL/sycl/event.hpp>
1818
#include <CL/sycl/id.hpp>
19+
#include <CL/sycl/interop_handle.hpp>
1920
#include <CL/sycl/kernel.hpp>
2021
#include <CL/sycl/nd_item.hpp>
2122
#include <CL/sycl/nd_range.hpp>
@@ -825,6 +826,15 @@ class __SYCL_EXPORT handler {
825826
MCGType = detail::CG::CODEPLAY_HOST_TASK;
826827
}
827828

829+
830+
template <typename FuncT>
831+
typename std::enable_if<
832+
detail::check_fn_signature<typename std::remove_reference<FuncT>::type,
833+
void(interop_handle)>::value>::type
834+
codeplay_host_task(FuncT) {
835+
throw runtime_error("Not implemented", PI_ERROR_UNKNOWN);
836+
}
837+
828838
/// Defines and invokes a SYCL kernel function for the specified range and
829839
/// offset.
830840
///

0 commit comments

Comments
 (0)