Page 2 of 2

Re: v2.3 Vs v2.4 performance

Posted: Wed May 13, 2020 3:13 pm
by TAO
My Ryzen has no OCL driver and will only work natively, so I cannot test the original configuration of the file.
About OCL on AMD, I used this library once and was able to use OpenCL on AMD Ryzen, not sure if it works with your machine but you can give it a chance. http://portablecl.org/

Re: v2.3 Vs v2.4 performance

Posted: Wed May 13, 2020 3:32 pm
by epilectrolytics
TAO wrote: Wed May 13, 2020 3:13 pm About OCL on AMD, I used this library once and was able to use OpenCL on AMD Ryzen, not sure if it works with your machine but you can give it a chance. http://portablecl.org/
Thanks for the link, but I'm no developer and don't know how to install or build libraries :)
In general CPU native rendering should be faster and using OCL on CPUs should be avoided, or so it is told somewhere in the docs, don't know where right now.

Back to your GPU problem, it is not with Lux and not in the scene, then it might be something related to your system.
Does the GPU work as expected in Cycles and Luxmark?

Re: v2.3 Vs v2.4 performance

Posted: Wed May 13, 2020 4:37 pm
by TAO
I think thats gonna answer your question.
Annotation 2020-05-13 204952.jpg

Re: v2.3 Vs v2.4 performance

Posted: Wed May 13, 2020 6:15 pm
by epilectrolytics
This looks just alright, now that it is based on LuxCore 2.2 makes it very strange that you cannot achieve similar GPU performance with the very same v2.2 LuxCoreUI and your simple scene :?
Sorry to be of no help, but this problem needs smarter heads than mine to solve :oops:

Re: v2.3 Vs v2.4 performance

Posted: Wed May 13, 2020 9:03 pm
by acasta69
I find the same very strange behaviour with TAO's scene, i.e. GPU is very slow, with LuxCoreUI 2.2 (but 2.4 is ok).
This line in the config file seems to be the source of the problem, at least on my laptop:

Code: Select all

opencl.gpu.workgroup.size = "0"
If I comment it, then GPU speed is again very high.

Re: v2.3 Vs v2.4 performance

Posted: Wed May 13, 2020 10:20 pm
by Dade
acasta69 wrote: Wed May 13, 2020 9:03 pm I find the same very strange behaviour with TAO's scene, i.e. GPU is very slow, with LuxCoreUI 2.2 (but 2.4 is ok).
This line in the config file seems to be the source of the problem, at least on my laptop:

Code: Select all

opencl.gpu.workgroup.size = "0"
If I comment it, then GPU speed is again very high.
"0" means use the work group size suggested by the driver (and often the drivers can be very wrong). The value should be 32 for NVIDIA and new AMD, 64 for some old AMD GPU.

Re: GPU rendering slower than CPU rendering

Posted: Wed May 13, 2020 11:35 pm
by TAO
You are great Dade, Not Only that fixes the issue but fixing this also fixes 3dsmax behavior too, and now it's much faster.
Thank you all.
Is there any suggestion for CPU workgroup size ?
Annotation 2020-05-14 040410.jpeg

Re: GPU rendering slower than CPU rendering

Posted: Thu May 14, 2020 12:10 am
by B.Y.O.B.
Last time I checked, OpenCL CPU device was much slower than native C++, so I wouldn't use it at all (set opencl.cpu.use = 0).

Re: GPU rendering slower than CPU rendering

Posted: Thu May 14, 2020 12:24 am
by TAO
I used opencl.cpu.use = "0" but it's not work exept i add 0 for cpu to opencl.devices.select = "10".
Anyway, it's work much better now.
Thank you.