TensorRT-Yolov3 icon indicating copy to clipboard operation
TensorRT-Yolov3 copied to clipboard

deconstructor failed if "std::unique_ptr<trtNet> net" declared as a global variable

Open haithink opened this issue 5 years ago • 2 comments

trtNet deconstructor failed if "std::unique_ptr<trtNet> net" declared as a global variable error is "cuda error 29" in YoloLayerPlugin.cu YoloLayerPlugin::~YoloLayerPlugin() if(mOutputBuffer) CUDA_CHECK(cudaFreeHost(mOutputBuffer));

I could not find the reason.

haithink avatar May 21 '19 01:05 haithink

Is this a runtime error? The error info as below: /** * This indicates that a CUDA Runtime API call cannot be executed because * it is being called during process shut down, at a point in time after * CUDA driver has been unloaded. */ cudaErrorCudartUnloading = 29

It seems that your cuda driver is not loaded right.

lewes6369 avatar May 26 '19 10:05 lewes6369

Thank you. The error is "CUDA error 29 at /home/githubCode/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu:22CUDA error 29 at /home/githubCode/TensorRT-Yolov3/tensorRTWrapper/code/src/YoloLayer.cu:25(base)

haithink avatar May 27 '19 05:05 haithink