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 in " << __func__ << " at " << __FILE__ << ":" \
<< __LINE__ << ". 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 in %s at %s:%d: %s\n", \
__func__, \
__FILE__, \
__LINE__, \
__sycl_err.what()); \
} \
} \
while (0)