3 #include <ATen/miopen/miopen-wrapper.h> 10 namespace at {
namespace native {
14 miopenStatus_t status;
16 : std::runtime_error(msg)
19 : std::runtime_error(msg)
23 inline void MIOPEN_CHECK(miopenStatus_t status)
25 if (status != miopenStatusSuccess) {
26 if (status == miopenStatusNotImplemented) {
28 ". This error may appear if you passed in a non-contiguous input.");
34 inline void HIP_CHECK(hipError_t error)
36 if (error != hipSuccess) {
37 std::string msg(
"HIP error: ");
38 msg += hipGetErrorString(error);
39 throw std::runtime_error(msg);
Flush-To-Zero and Denormals-Are-Zero mode.