/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/host_utility/hip_check_error.hpp File Reference

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/host_utility/hip_check_error.hpp File Reference#

Composable Kernel: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/host_utility/hip_check_error.hpp File Reference
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 (" \
<< "hip_check_error.hpp" \
<< "," << __LINE__ << ") " << hipGetErrorString(_tmpVal); \
throw std::runtime_error(ostr.str()); \
} \
} while(0)

Function Documentation

◆ hip_check_error()

void hip_check_error ( hipError_t  x)
inline