Freeing Device Memory on Context Deletion?

Hello!

Given a scenario where I use cudaMalloc to allocate memory, but I don’t explicitly free said memory by the end of the program runtime, is it correct to assume this memory is freed when the CUDA context is deleted?

yes