MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / cudaCheck

Function cudaCheck

samples/common/sampleDevice.h:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30{
31
32inline void cudaCheck(cudaError_t ret, std::ostream& err = std::cerr)
33{
34 if (ret != cudaSuccess)
35 {
36 err << "Cuda failure: " << cudaGetErrorString(ret) << std::endl;
37 abort();
38 }
39}
40
41class TrtCudaEvent;
42

Callers 15

~RndInt8CalibratorMethod · 0.85
RndInt8CalibratorMethod · 0.85
setUpInferenceFunction · 0.85
createEnqueueFunctionMethod · 0.85
inferenceExecutionFunction · 0.85
runInferenceFunction · 0.85
runMultiTasksInferenceFunction · 0.85
reportGpuMemoryFunction · 0.85
TrtCudaStreamMethod · 0.85
~TrtCudaStreamMethod · 0.85
synchronizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected