Ginkgo: gko::HipError Class Reference

| Ginkgo Generated from branch based on main. Ginkgo version 1.11.0 A numerical linear algebra library targeting many-core architectures

Loading...
Searching...
No Matches
gko::HipError Class Reference

HipError is thrown when a HIP routine throws a non-zero error code. More...

`#include <ginkgo/core/base/exception.hpp>`

Inheritance diagram for gko::HipError:
[legend]
Collaboration diagram for gko::HipError:
[legend]

## Public Member Functions
| HipError (const std::string &file, int line, const std::string &func, int64 error_code)
| Initializes a HIP error.
Public Member Functions inherited from gko::Error
| Error (const std::string &file, int line, const std::string &what)
| Initializes an error.
virtual const char * | what () const noexcept override
| Returns a human-readable string with a more detailed description of the error.

## Detailed Description

HipError is thrown when a HIP routine throws a non-zero error code.

## Constructor & Destructor Documentation

## ◆ HipError()

gko::HipError::HipError | ( | const std::string & | file,
|  | int | line,
|  | const std::string & | func,
|  | int64 | error_code )
| inline

Initializes a HIP error.

Parameters

  file | The name of the offending source file
  line | The source code line number where the error occurred
  func | The name of the HIP routine that failed
  error_code | The resulting HIP error code

References gko::Error::Error().

The documentation for this class was generated from the following file:

- ginkgo/core/base/exception.hpp