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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -