| 57 | static cdf_t cdf; |
| 58 | |
| 59 | inline static int check(CUresult result, const std::string_view &sv) { |
| 60 | if (result != CUDA_SUCCESS) { |
| 61 | const char *name; |
| 62 | const char *description; |
| 63 | |
| 64 | cdf->cuGetErrorName(result, &name); |
| 65 | cdf->cuGetErrorString(result, &description); |
| 66 | |
| 67 | BOOST_LOG(error) << sv << name << ':' << description; |
| 68 | return -1; |
| 69 | } |
| 70 | |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | void freeStream(CUstream stream) { |
| 75 | CU_CHECK_IGNORE(cdf->cuStreamDestroy(stream), "Couldn't destroy cuda stream"); |
nothing calls this directly
no outgoing calls
no test coverage detected