MCPcopy Create free account
hub / github.com/Niko1221/Strata / fail

Function fail

engine/src/core/graph.cpp:14–17  ·  view source on GitHub ↗

Fills `err` from the CUDA runtime, naming the call that failed. A bare "invalid argument" with no call site is the least useful error this API can produce and the easiest to avoid.

Source from the content-addressed store, hash-verified

12/// Fills `err` from the CUDA runtime, naming the call that failed. A bare "invalid argument" with no call
13/// site is the least useful error this API can produce and the easiest to avoid.
14bool fail(std::string& err, const char* what, cudaError_t e) {
15 err = std::string(what) + ": " + cudaGetErrorString(e);
16 return false;
17}
18
19} // namespace
20

Callers 4

beginMethod · 0.70
endMethod · 0.70
launchMethod · 0.70
recordMethod · 0.70

Calls 2

stringFunction · 0.50
cudaGetErrorStringFunction · 0.50

Tested by

no test coverage detected