MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / cudaCheckError

Method cudaCheckError

extensions/include/cuMat/src/Errors.h:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 }
134
135 static void cudaCheckError(const char *file, const int line)
136 {
137 cudaError err = cudaGetLastError();
138 if (!evalError(err, file, line)) return;
139
140#if CUMAT_VERBOSE_ERROR_CHECKING==1
141 // More careful checking. However, this will affect performance.
142 err = cudaDeviceSynchronize();
143 evalError(err, file, line);
144#endif
145 }
146 };
147
148/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected