CUDA ran out of memory even though it has free space

Don’t know why this is happening, it used to work fine before.



Need help ASAP.

Could you please provide more details, such as source code and exactly what snippet is taking this memory?