Hi,
In my project, i found that gpu usage did not restore even though i have already delete the imageNet object.
You can recurrent this by add sleep(10); downblew the LogVerbose("imagenet: shutdown complete.\n"); (line 194 in examples/imagenet/imagenet.cpp), which was after the SAFE_DELETE(net); ; And use the jtop command to monitor the gpu memory usage;
When i run the imagenet sample with ./imagenet --network=resnet-18 images/jellyfish.jpg images/test/output_jellyfish.jpg, i found that the gpu RAM Legend of my device increase from 452M to 798M, and then decrease to 766M when it showed imagenet: shutdown complete.., but not decrease to 452M untill the program was ended.so i guess that the destroy() function of mEngine and mInfer did not free all the gpu it holded.
So how can i free all the gpu memory usage after i delete the imageNet object?
Hi, In my project, i found that gpu usage did not restore even though i have already delete the
imageNet
object. You can recurrent this by addsleep(10);
downblew theLogVerbose("imagenet: shutdown complete.\n");
(line 194 in examples/imagenet/imagenet.cpp), which was after theSAFE_DELETE(net);
; And use thejtop
command to monitor the gpu memory usage; When i run the imagenet sample with./imagenet --network=resnet-18 images/jellyfish.jpg images/test/output_jellyfish.jpg
, i found that the gpu RAM Legend of my device increase from 452M to 798M, and then decrease to 766M when it showedimagenet: shutdown complete.
., but not decrease to 452M untill the program was ended.so i guess that thedestroy()
function of mEngine and mInfer did not free all the gpu it holded. So how can i free all the gpu memory usage after i delete theimageNet
object?environment of my NVIDIA Jetson Xavier NX is