MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / check

Function check

src/platform/linux/cuda.cpp:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected