18 inline namespace _V1 {
21 template <
typename Param>
25 "Unexpected event profiling info descriptor");
26 typename Param::return_type Result{0};
29 sizeof(Result), &Result,
nullptr);
33 template <
typename Param>
37 "Unexpected event info descriptor");
38 typename Param::return_type Result{0};
45 if constexpr (std::is_same<Param,
46 info::event::command_execution_status>::value) {
47 Result =
static_cast<ur_event_status_t
>(Result) == UR_EVENT_STATUS_QUEUED
48 ? sycl::info::event_command_status::submitted
Param::return_type get_event_info(ur_event_handle_t Event, const PluginPtr &Plugin)
std::shared_ptr< plugin > PluginPtr
Param::return_type get_event_profiling_info(ur_event_handle_t Event, const PluginPtr &Plugin)