| 13 | #include <stdexcept> |
| 14 | |
| 15 | void check(nvrtcResult result) |
| 16 | { |
| 17 | if (result != NVRTC_SUCCESS) |
| 18 | { |
| 19 | throw std::runtime_error(std::string("NVRTC error: ") + nvrtcGetErrorString(result)); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | void check(CUresult result) |
| 24 | { |
no test coverage detected