Errors and Error Handling#
|
ROCprofiler-SDK developer API 1.4.1
ROCm Profiling API and tools
|
Data Structures | |
| struct | hipFileError_t |
| Error status returned from hipFile API calls. More... | |
Macros | |
| #define | HIPFILE_BASE_ERR 5000 |
| The base value for hipFile error codes. | |
| #define | IS_HIPFILE_ERR(hip_op_err) |
| Determine if an error code is a hipFile error. | |
| #define | HIPFILE_ERRSTR(hip_op_err) |
| Get an error string for a hipFile error. | |
| #define | IS_HIP_DRV_ERR(hip_err) |
| Determine if an error is a hipFile driver error. | |
| #define | HIP_DRV_ERR(hip_err) |
| Get the driver error from a hipFileError_t. | |
Functions | |
| const char * | hipFileGetOpErrorString (hipFileOpError_t status) |
| Return a descriptive string for a hipFile error. | |
Detailed Description
Data Structure Documentation
◆ hipFileError_t
| struct hipFileError_t |
Error status returned from hipFile API calls.
- Note
- This struct has the
[[nodiscard]]attribute in C++ >= 17 and C >= 23 so unhandled return values will generate warnings
Collaboration diagram for hipFileError_t:| Data Fields | ||
|---|---|---|
| hipFileOpError_t | err | Errors related to hipFile or the GPU IO driver. |
| hipError_t | hip_drv_err | Errors related to the GPU driver. |
Macro Definition Documentation
◆ HIP_DRV_ERR
| #define HIP_DRV_ERR | ( | hip_err | ) |
#include <rocprofiler-sdk/hipfile/details/hipfile.h>
Get the driver error from a hipFileError_t.
Signature
- Returns
- The hipError_t component of err
◆ HIPFILE_BASE_ERR
| #define HIPFILE_BASE_ERR 5000 |
#include <rocprofiler-sdk/hipfile/details/hipfile.h>
The base value for hipFile error codes.
◆ HIPFILE_ERRSTR
| #define HIPFILE_ERRSTR | ( | hip_op_err | ) |
#include <rocprofiler-sdk/hipfile/details/hipfile.h>
Get an error string for a hipFile error.
Signature
- Returns
- A string description of a hipFile error
◆ IS_HIP_DRV_ERR
| #define IS_HIP_DRV_ERR | ( | hip_err | ) |
#include <rocprofiler-sdk/hipfile/details/hipfile.h>
Determine if an error is a hipFile driver error.
Signature
- Returns
- true/false
◆ IS_HIPFILE_ERR
| #define IS_HIPFILE_ERR | ( | hip_op_err | ) |
#include <rocprofiler-sdk/hipfile/details/hipfile.h>
Determine if an error code is a hipFile error.
Signature
- Returns
- true/false
Enumeration Type Documentation
◆ hipFileOpError_t
| enum hipFileOpError_t |
#include <rocprofiler-sdk/hipfile/details/hipfile.h>
hipFile function return codes
An error code of -1 indicates a that a C or POSIX error has occurred and errno is likely to have been set.
- Note
- HIPFILE_BASE_ERR + 21 and 32 are intentionally omitted.
Definition at line 136 of file hipfile.h.
Function Documentation
◆ hipFileGetOpErrorString()
| const char * hipFileGetOpErrorString | ( | hipFileOpError_t | status | ) |
#include <rocprofiler-sdk/hipfile/details/hipfile.h>
Return a descriptive string for a hipFile error.
- Parameters
-
[in] status Return code provided by hipFile
- Returns
- Description of the error encountered
Generated by