pulsatrix
Loading...
Searching...
No Matches
hipblas_check.hpp
Go to the documentation of this file.
1
7#pragma once
8
9#include <hipblas/hipblas.h>
10
11#include <stdexcept>
12#include <string>
13
24#define PULSATRIX_HIPBLAS_CHECK(call) \
25 do { \
26 hipblasStatus_t pulsatrix_hipblas_check_result = (call); \
27 if (pulsatrix_hipblas_check_result != HIPBLAS_STATUS_SUCCESS) { \
28 throw std::runtime_error(std::string("hipBLAS error: ") + \
29 hipblasStatusToString(pulsatrix_hipblas_check_result) + " at " __FILE__ \
30 + ":" + std::to_string(__LINE__)); \
31 } \
32 } while (0)