I have two quick questions on memory use by cuda. I have a Program called VideoMemory which monitors the amount of memory used on the graphics card. This program tells me that everytime a cuda enabled program is started about 30 MB are used and they are not freed until the program is closed (remain allocated after a kernel call). What is this memory used for or is the Program VideoMemory not functioning properly?
It also seems that in my cuda program the memory use goes up drastically (about 100 MB) while the kernel is being executed. This is without the memory allocated using cudaMalloc. How does a kernel use global memory apart from starting data allocated by cudaMalloc?
Thanks in advance.
PS: I apologize for the many questions