MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / CudaCheck

Function CudaCheck

include/util/debug.h:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#define CURAND_CHECK(error) CurandCheck((error), __FILE__, __LINE__)
29
30inline void CudaCheck(cudaError_t error, const char *file_name, int line) {
31 CHECK(error == cudaSuccess)
32 << "CUDA error " << cudaGetErrorString(error) << " at " << file_name << ":" << line;
33}
34
35inline void CurandCheck(curandStatus_t error, const char *file_name, int line) {
36 CHECK(error == CURAND_STATUS_SUCCESS)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected