Crash with OpenCL

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
david57
Posts: 103
Joined: Mon Jan 22, 2018 11:30 pm

Re: Crash with OpenCL

Post by david57 »

Ok, I reduced the max. path depth to 64 and worked fine with GPU and Path and Sobol sampler.
I got curious, set it to METROPOLIS sampler and worked fine with this settings:
Total Path Depth = 64
Diffused = 64
Glossy = 64
Specular = 64
Would be nice for max settings not able to go past 64 in those option boxes as you said.
User avatar
infinityeternity
Posts: 8
Joined: Fri Feb 15, 2019 11:19 pm

Re: Crash with OpenCL

Post by infinityeternity »

I also have a problem with OpenCL rendering (viewport preview rendering). It freezes. I suppose this is due to CL_DEVICE_MAX_MEM_ALLOC_SIZE=536870912. But why is it only ~500 MB while my card has 2GB dedicated GPU memory?
Attachments
cycles_sddss.jpg
Last edited by infinityeternity on Sun Feb 17, 2019 11:31 am, edited 2 times in total.
User avatar
alpistinho
Developer
Developer
Posts: 198
Joined: Thu Jul 05, 2018 11:38 pm
Location: Rio de Janeiro

Re: Crash with OpenCL

Post by alpistinho »

Hello,

https://devtalk.nvidia.com/default/topi ... n-nvidia-/

I would say it is a nvidia limitation
Support LuxCoreRender project with salts and bounties
User avatar
infinityeternity
Posts: 8
Joined: Fri Feb 15, 2019 11:19 pm

Re: Crash with OpenCL

Post by infinityeternity »

Is there a way to increase this value? It seems that CUDA is less limited in this sense.
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with OpenCL

Post by Dade »

alpistinho wrote: Sun Feb 17, 2019 11:27 am https://devtalk.nvidia.com/default/topi ... n-nvidia-/

I would say it is a nvidia limitation
It was an hardware limit on some old AMD GPU too: the HD5870 wasn't able to allocate a single block of memory larger of 256MB even if it had 4GB of ram. It was happening because the memory access was handled like a texture map read (so there was limits like 16384x16384 max. texture map size).
Support LuxCoreRender project with salts and bounties
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with OpenCL

Post by Dade »

infinityeternity wrote: Sun Feb 17, 2019 11:50 am Is there a way to increase this value? It seems that CUDA is less limited in this sense.
Yes, there is a LuxCore parameter to reduce the number of threads used (and so the amount of memory required for all GPUTask buffers). The name of the property is "opencl.task.count" and the value should be something like 65536. BlendLuxCore probably doesn't exposes the parameter so you should export the scene in text format, add the following line to .cfg file:

Code: Select all

opencl.task.count = 65536
And than run the rendering with LuxCoreUI.
Support LuxCoreRender project with salts and bounties
CodeHD
Donor
Donor
Posts: 437
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

Re: Crash with OpenCL

Post by CodeHD »

Dade wrote: Sun Feb 17, 2019 11:56 am Yes, there is a LuxCore parameter to reduce the number of threads used (and so the amount of memory required for all GPUTask buffers).
Will that impact performance?
User avatar
infinityeternity
Posts: 8
Joined: Fri Feb 15, 2019 11:19 pm

Re: Crash with OpenCL

Post by infinityeternity »

Dade wrote: Sun Feb 17, 2019 11:56 am ... rendering with LuxCoreUI.
It would be nice to do this within Blender :)
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Crash with OpenCL

Post by Dade »

CodeHD wrote: Sun Feb 17, 2019 12:08 pm
Dade wrote: Sun Feb 17, 2019 11:56 am Yes, there is a LuxCore parameter to reduce the number of threads used (and so the amount of memory required for all GPUTask buffers).
Will that impact performance?
Yes, depend on the GPU but reducing the number of threads will slightly reduce the performance due to some additional CPU <=> GPU communication.
Support LuxCoreRender project with salts and bounties
Post Reply