Misc.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  Opm
 
namespace  Opm::Accelerator
 

Macros

#define HIP_CHECK_NOTHROW(STAT)
 
#define ROCSPARSE_CHECK_NOTHROW(STAT)
 

Functions

unsigned int Opm::Accelerator::ceilDivision (const unsigned int A, const unsigned int B)
 
template<class Scalar >
Scalar Opm::Accelerator::get_absmax (const Scalar *data, const int N)
 
template<class Scalar >
void Opm::Accelerator::solve_transposed_3x3 (const Scalar *A, const Scalar *b, Scalar *x)
 

Macro Definition Documentation

◆ HIP_CHECK_NOTHROW

#define HIP_CHECK_NOTHROW (   STAT)
Value:
do { \
const hipError_t stat = (STAT); \
if(stat != hipSuccess) \
{ \
std::cerr << "rocsparseSolverBackend::hip error: " << hipGetErrorString(stat) << std::endl; \
} \
} while(0)

◆ ROCSPARSE_CHECK_NOTHROW

#define ROCSPARSE_CHECK_NOTHROW (   STAT)
Value:
do { \
const rocsparse_status stat = (STAT); \
if(stat != rocsparse_status_success) \
{ \
std::cerr << "rocsparseSolverBackend::rocsparse error: " << stat << std::endl; \
} \
} while(0)