Go to the source code of this file.
◆ DEVICE_API_CHECK
#define DEVICE_API_CHECK |
( |
| event | ) |
|
Value: { \
try \
{ \
event.wait(); \
} \
catch (const sycl::exception &e) \
{ \
std::cerr << "SYCL error on or before line number" << __LINE__ \
<< " in file: " << __FILE__ << ". Error code: " << e.what() \
<< ".\n"; \
} \
}
◆ DEVICEBLAS_API_CHECK
#define DEVICEBLAS_API_CHECK |
( |
| expr | ) |
|
Value: do \
{ \
try \
{ \
(void)(expr); \
} \
catch (sycl::exception const &__sycl_err) \
{ \
std::printf("oneMKL enqueue error at %s:%d: %s\n", \
__FILE__, \
__LINE__, \
__sycl_err.what()); \
} \
} while (0)