DFT-FE 1.3.0-pre
Density Functional Theory With Finite-Elements
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 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)