LuxCore: Problem exporting 10 million instances for OpenCL in latest BlendLuxCore

With the latest BlendLuxCore addon (from 13/11/2020) if I try to export 10 million cubes instanced with particles It seems I run out of memory, when in theory I should not run out of memory.

image

The Mesh description buffer is too big for GeForce GTX 1080 Intersect device (i.e. CL_DEVICE_MAX_MEM_ALLOC_SIZE=2127675392): try to reduce related parameters

And it does not allows me to render it.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

I have investigated a bit the problem and apparently the NVIDIA driver is just lying. The reported CL_DEVICE_MAX_MEM_ALLOC_SIZE is not an hardware limit anymore.

I have transformed original LuxCore error in a warning:

[LuxRays][0.299] WARNING: the SampleData buffer is too big for GeForce RTX 2070 SUPER Intersect device (i.e. CL_DEVICE_MAX_MEM_ALLOC_SIZE=2086633472)

So it will try to allocate more memory even if the size is greater than CL_DEVICE_MAX_MEM_ALLOC_SIZE. It works pretty much up to the total amount of GPU memory available on my RTX. If you try to allocate more memory of what is physically available, you will get an error just at the first kernel execution.