File indexing completed on 2026-08-16 08:20:30
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010
0011 #include <hip/hip_runtime_api.h>
0012
0013
0014 #define TRACCC_HIP_ERROR_CHECK(EXP) \
0015 do { \
0016 hipError_t errorCode = EXP; \
0017 if (errorCode != hipSuccess) { \
0018 traccc::hip_utils::details::throw_error(errorCode, #EXP, __FILE__, \
0019 __LINE__); \
0020 } \
0021 } while (false)
0022
0023 namespace traccc::hip_utils::details {
0024
0025
0026 void throw_error(hipError_t errorCode, const char* expression, const char* file,
0027 int line);
0028
0029 }