syclreference.com
  1. SYCL
  2. | API Reference
  3. | Error handling
  4. | exception

exception

SYCL exception class, defined Section 3.2 of the specification, for general SYCL error.

class cl::sycl::exception;

Member Functions

(constructor)
(destructor)
get_cl_code

Returns the OpenCL error code. Value extracted directly from the OpenCL header.

get_cl_error_message

Returns the name of the OpenCL error macro

get_context

Returns the SYCL context that is associated with this SYCL exception

get_cpp_error_code

Returns an internal ComputeCpp error code from the error

get_description

Returns the SYCL error message.

get_file_name

Returns the file name that trigger the error.

get_line_number

Returns the line number that trigger the error.

has_context

Reports whether the exception has a context associated with it

operator=
what

Overload of std::runtime_error::what() which returns the message associated with the error.

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000