MCPcopy Create free account
hub / github.com/colmap/colmap / CudaCheck

Function CudaCheck

src/colmap/util/cudacc.cc:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void CudaCheck(const char* file, const int line) {
67 const cudaError error = cudaGetLastError();
68 while (error != cudaSuccess) {
69 LOG(FATAL_THROW) << StringPrintf(
70 "CUDA error at %s:%i - %s", file, line, cudaGetErrorString(error));
71 }
72}
73
74void CudaSyncAndCheck(const char* file, const int line) {
75 // Synchronizes the default stream which is a nullptr.

Callers

nothing calls this directly

Calls 1

StringPrintfFunction · 0.85

Tested by

no test coverage detected