22 #include <system_error>
23 #include <type_traits>
26 inline namespace _V1 {
32 enum class errc : unsigned int {
66 std::string
message(
int)
const override {
return "SYCL Error"; }
77 class __SYCL_EXPORT
exception :
public virtual std::exception {
80 "no arguments is deprecated.")
91 exception(
int EV,
const std::error_category &ECat,
const std::string &WhatArg)
93 exception(
int,
const std::error_category &,
const char *);
94 exception(
int,
const std::error_category &);
108 const
std::error_category &category() const
noexcept;
110 const
char *what() const
noexcept final;
119 std::shared_ptr<detail::
string> MMsg;
137 const std::string &what_arg)
138 :
exception(Ec, SharedPtrCtx, what_arg.c_str()) {}
140 const char *WhatArg);
169 template <>
struct is_error_code_enum<
sycl::
errc> : true_type {};
The context class represents a SYCL context on which kernel functions may be executed.
std::string message(int) const override
const char * name() const noexcept override
exception(std::error_code Ec, std::shared_ptr< context > SharedPtrCtx, const std::string &what_arg)
exception(std::error_code Ec, const std::string &Msg, const pi_int32 PIErr)
__SYCL2020_DEPRECATED("The version of an exception constructor which takes " "no arguments is deprecated.") exception()=default
exception(int EV, const std::error_category &ECat, const std::string &WhatArg)
Provides an abstraction of a SYCL kernel.
Defines the iteration domain of both the work-groups and the overall dispatch.
std::string codeToString(pi_int32 code)
const char * stringifyErrorCode(pi_int32 error)
exception set_pi_error(exception &&e, pi_int32 pi_err)
pi_int32 get_pi_error(const exception &e)
const std::error_category & sycl_category() noexcept
std::error_code make_error_code(sycl::errc E) noexcept
Constructs an error code using e and sycl_category()
_Abi const simd< _Tp, _Abi > & noexcept