DFT-EFE
 
Loading...
Searching...
No Matches
DeviceExceptions.sycl.h File Reference

Go to the source code of this file.

Macros

#define DEVICE_API_CHECK(event)
 
#define DEVICEBLAS_API_CHECK(expr)
 

Macro Definition Documentation

◆ 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)