CUDA error: Out of memory in cuMemAlloc(&device_pointer, size) My GTX 960 is reporting there there is not enough memory, even when another person the same card is able to render it fine. The other person had the same set up as I do and rendered the same scenes. He did not have this issue. 

I'm a render farmer for black plasma studios and I have come across this problem with my rendering recently. I was doing a benchmark test for them and blender gave the error (in the title).

My first test went good: 


But I got the error on my second test:


as you can see it renders the first square but then runs out of memory after that. It did not render at all until I updated my graphics drivers with GeForce Experience. This helped a little but the render still didn't finish.

I seem to get this error a lot now and I would assume a better graphics card would be needed but someone else in the group has the same one that I have and he can do it just fine.

Computer info:

Display Device:
name: NVIDIA GeForce GTX 960
DAC type: Integrated RAMDAC
Device Type: Full Display Device
Approx Memory: 6091 MB  

System:
OS: Windows 10 Home 64-bit
processor: Intel Core i5-6600K CPU @ 3.50GHz (4 CPUs), about 3.5GHz
Current Display Mode: 1920 x 1080 (32 bit) (60Hz)
Memory: 8148MB RAM

How do I fix this?
There are two options.

First:

Your scene render is bigger then your GTX 960 memory.

Solution:

Change render to CPU.

Second:

You have active 'render preview mode' and 'final render' at once.

Solution:

Turn off 'preview mode' or change it to 'solid/wireframe'.