18 inline namespace _V1 {
21 template <
typename Param>
22 typename Param::return_type
26 "Unexpected event profiling info descriptor");
27 typename Param::return_type Result{0};
34 template <
typename Param>
38 "Unexpected event info descriptor");
39 typename Param::return_type Result{0};
42 sizeof(Result), &Result,
nullptr);
46 if constexpr (std::is_same<Param,
47 info::event::command_execution_status>::value) {
49 ? sycl::info::event_command_status::submitted
Param::return_type get_event_info(sycl::detail::pi::PiEvent Event, const PluginPtr &Plugin)
std::shared_ptr< plugin > PluginPtr
Param::return_type get_event_profiling_info(sycl::detail::pi::PiEvent Event, const PluginPtr &Plugin)
pi_result piEventGetInfo(pi_event event, pi_event_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)
pi_result piEventGetProfilingInfo(pi_event event, pi_profiling_info param_name, size_t param_value_size, void *param_value, size_t *param_value_size_ret)