I am developing an application using CUDA C, I need to manage large data amount so I decided free memory on each iteration of my main for loop. I mean, on each iteration of that loop I allocate memory, compute the kernel and then copy the memory to the host memory and free that memory. But not all memory is free and memory crash at several iterations. I do not know what is happening and why this behaivor occurs…
Im using CUDA 6 and Unified Memory, if somebody can help me and need more information just let me know.
Thank you in advance.