#include <hip/hip_runtime.h>
#include <iostream>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
◆ CHECK_HIPCUDA_ERROR
| #define CHECK_HIPCUDA_ERROR |
( |
|
err | ) |
|
Value: { \
const hipError_t nekCheckErr = (err); \
if (nekCheckErr != hipSuccess) \
{ \
std::cerr << "HIP Runtime Error at: " << __FILE__ << ":" \
<< __LINE__ << std::endl; \
std::cerr << hipGetErrorString(nekCheckErr) << std::endl; \
exit(1); \
} \
}
Definition at line 56 of file HIPStream.hpp.
57 { \
58 const hipError_t nekCheckErr = (err); \
59 if (nekCheckErr != hipSuccess) \
60 { \
61 std::cerr << "HIP Runtime Error at: " << __FILE__ << ":" \
62 << __LINE__ << std::endl; \
63 std::cerr << hipGetErrorString(nekCheckErr) << std::endl; \
64 exit(1); \
65 } \
66 }
◆ CHECK_LAST_HIPCUDA_ERROR
| #define CHECK_LAST_HIPCUDA_ERROR |
( |
| ) |
|
Value: { \
hipError_t err = hipGetLastError(); \
if (err != hipSuccess) \
{ \
std::cerr << "HIP Runtime Error at: " << __FILE__ << ":" \
<< __LINE__ << std::endl; \
std::cerr << hipGetErrorString(err) << std::endl; \
exit(1); \
} \
}
Definition at line 45 of file HIPStream.hpp.
46 { \
47 hipError_t err = hipGetLastError(); \
48 if (err != hipSuccess) \
49 { \
50 std::cerr << "HIP Runtime Error at: " << __FILE__ << ":" \
51 << __LINE__ << std::endl; \
52 std::cerr << hipGetErrorString(err) << std::endl; \
53 exit(1); \
54 } \
55 }
◆ nekDeviceGetPCIBusId
| #define nekDeviceGetPCIBusId hipDeviceGetPCIBusId |
◆ nekEvent
| #define nekEvent hipEvent_t |
◆ nekEventCreateWithFlags
| #define nekEventCreateWithFlags hipEventCreateWithFlags |
◆ nekEventDestroy
| #define nekEventDestroy hipEventDestroy |
◆ nekEventDisableTiming
| #define nekEventDisableTiming hipEventDisableTiming |
◆ nekEventRecord
| #define nekEventRecord hipEventRecord |
◆ nekGetCurrentDevice
| #define nekGetCurrentDevice hipGetDevice |
◆ nekStream
| #define nekStream hipStream_t |
◆ nekStreamCreateWithFlags
| #define nekStreamCreateWithFlags hipStreamCreateWithFlags |
◆ nekStreamDestroy
| #define nekStreamDestroy hipStreamDestroy |
◆ nekStreamNonBlocking
| #define nekStreamNonBlocking hipStreamNonBlocking |
◆ nekStreamWaitEvent
| #define nekStreamWaitEvent hipStreamWaitEvent |