/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/ck/host_utility/hip_check_error.hpp File Reference#
#include <sstream>#include <hip/hip_runtime.h>Go to the source code of this file.
Macros | |
| #define | HIP_CHECK_ERROR(retval_or_funcall) | 
Functions | |
| void | hip_check_error (hipError_t x) | 
Macro Definition Documentation
◆ HIP_CHECK_ERROR
| #define HIP_CHECK_ERROR | ( | retval_or_funcall | ) | 
Value:
    do                                                                             \
    {                                                                              \
        hipError_t _tmpVal = retval_or_funcall;                                    \
        if(_tmpVal != hipSuccess)                                                  \
        {                                                                          \
            std::ostringstream ostr;                                               \
            ostr << "HIP Function Failed (" << __FILE__ << "," << __LINE__ << ") " \
                 << hipGetErrorString(_tmpVal);                                    \
            throw std::runtime_error(ostr.str());                                  \
        }                                                                          \
    } while(0)
Function Documentation
◆ hip_check_error()
      
  | 
  inline |