Page 1 of 1

Cuda Error - CUDA error 2 on device 0:

Posted: Mon Feb 23, 2015 12:11 am
by conner
Hey everybody,

I put a NVIDIA GeForce GTX 680 2047 MB in my Mac Pro to check Octane but get some cuda error and the render cancel
I running 10.9.5 and C4D r16 with and Octane V 2.1


--------------------------- EXPORT LOG ---------------------------
Export materials time= 10.072 ms
Collect objects time= 2.868 ms
Meshes creation time = 1371.079 ms
Octane voxelization time = 0.001 ms
Sending to Octane engine time = 197.033 ms
CUDA error 2 on device 0: The API was unable to allocate enough memory to perform the requested operation.
-> failed to launch kernel (dl)
device 0: direct lighting failed
<<< Render Failure >>>
Total export Time = 42959.129 ms

Re: Cuda Error - CUDA error 2 on device 0:

Posted: Mon Feb 23, 2015 3:20 am
by FooZe
This could mean that you are out of VRAM.
Is it a large scene (millions of polygons, lots of large textures?).

Does it work with a simple scene?

Re: Cuda Error - CUDA error 2 on device 0:

Posted: Mon Feb 23, 2015 12:15 pm
by conner
about 4 Mio polygons - i reduce polygons and now it works

Thanks

Re: Cuda Error - CUDA error 2 on device 0:

Posted: Mon Feb 23, 2015 1:46 pm
by aoktar
conner wrote:about 4 Mio polygons - i reduce polygons and now it works

Thanks
Keep your eyes on render infos about free vram

Re: Cuda Error - CUDA error 2 on device 0:

Posted: Wed Feb 25, 2015 10:53 am
by conner
I have try it with several scenes and reduce them more and more

Can i tweak some settings to get bigger scene rendered
Or is my GTX 680 to small
example vram
example vram
project settings
project settings
Bildschirmfoto 2015-02-25 um 11.45.02.png (13.24 KiB) Viewed 9226 times

Re: Cuda Error - CUDA error 2 on device 0:

Posted: Wed Feb 25, 2015 10:28 pm
by FooZe
What does your Used/free/total VRAM say when you are rendering just a cube? If your free when rendering a trivial scene is low, then double check you don't have any other software running that is using your VRAM. Close everything else and restart C4D and octane.

The OS and other software will use up VRAM, leaving less free for octane. If you are rendering on the same GPU that your monitors are plugged into then you will never have the full amount of VRAM available to octane, but with windows, you should be able minimize the OS's usage to something like 300MB, leaving about 1700MB free for your octane scene.

4mil triangles should take up about 600MB (geometry only) so I would expect this to fit ok. Do you have some huge textures or very high render resolution?