cuda - What will happen to the allocated memory on GPU, after the application using it exits, if cudaFree() was not used? -


if cudafree() not used in end, memory being used automatically free, after application/kernel function using exits?

yes.

when application terminates (be gracefully or not), of memory reclaimed os, regardless of whether had freed or not. similarly, memory allocated on gpu managed driver, release resources application held, cudafreed or not.

it practice every allocation has matching deallocation, don't use excuse not deallocate memory :)


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -