AmgxInterface.hpp File Reference
#include <opm/common/ErrorMacros.hpp>
#include <opm/simulators/linalg/gpuistl/GpuSparseMatrix.hpp>
#include <opm/simulators/linalg/gpuistl/GpuVector.hpp>
#include <opm/simulators/linalg/gpuistl/detail/gpu_safe_call.hpp>
#include <opm/simulators/linalg/gpuistl/detail/gpu_type_detection.hpp>
#include <amgx_c.h>
#include <cuda_runtime.h>
#include <fmt/core.h>
#include <string>
#include <vector>
Include dependency graph for AmgxInterface.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Opm::gpuistl::AmgxError
 Exception class for AMGX errors. More...
 
class  Opm::gpuistl::AmgxInterface
 Unified interface for AMGX operations with both CPU and GPU data structures. More...
 

Namespaces

namespace  Opm
 
namespace  Opm::gpuistl
 

Macros

#define OPM_AMGX_SAFE_CALL(expr)   ::Opm::gpuistl::amgxSafeCall((expr), #expr, __FILE__, __func__, __LINE__)
 Macro to wrap AMGX function calls with error checking. More...
 

Functions

std::string Opm::gpuistl::getAmgxErrorMessage (AMGX_RC err, const std::string &expression, const std::string &file, const std::string &function, int line)
 Get a descriptive error message for an AMGX error code. More...
 
void Opm::gpuistl::amgxSafeCall (AMGX_RC rc, const std::string &expression, const std::string &file, const std::string &function, int line)
 Safe call wrapper for AMGX functions. More...
 

Macro Definition Documentation

◆ OPM_AMGX_SAFE_CALL

#define OPM_AMGX_SAFE_CALL (   expr)    ::Opm::gpuistl::amgxSafeCall((expr), #expr, __FILE__, __func__, __LINE__)

Macro to wrap AMGX function calls with error checking.

Example usage:

OPM_AMGX_SAFE_CALL(AMGX_initialize());
#define OPM_AMGX_SAFE_CALL(expr)
Macro to wrap AMGX function calls with error checking.
Definition: AmgxInterface.hpp:107