Page 3 of 10

Re: Cycle X (and OpenCL)

Posted: Sun Apr 25, 2021 9:08 pm
by Sharlybg
juangea wrote: Sun Apr 25, 2021 8:02 pm Interesting, I'm eager to see the results :)
:D

Re: Cycle X (and OpenCL)

Posted: Sun Apr 25, 2021 10:10 pm
by Dade
It is a lot of work, don't hold your breath.

Re: Cycle X (and OpenCL)

Posted: Sun Apr 25, 2021 11:19 pm
by juangea
Understood, anyways eager to see the outcome :)

Re: Cycle X (and OpenCL)

Posted: Mon Apr 26, 2021 12:22 am
by JulianoLisboa
Dade wrote: Sun Apr 25, 2021 9:49 am
Dez! wrote: Sun Apr 25, 2021 12:58 am I didn't understand the situation. Are we in a panic?
No but there is quite big strategic decision ahead: what to do ? And how to get there ?

My current feeling is to start to make (most of) CPU code compatible with CUDA C++: you can compile the code with a normal C++ compiler for CPUs or with CUDA for CPUs and GPUs.
At that point I would have all the building blocks to write new CUDA-only render engines solving a long list of problems:

1) One single source code (no more C++ and OpenCL C code for the same stuff). The current code is expansive to maintain (i.e. it slows down the development of new feature);

2) Writing a new material in OpenCL C is currently mind bending. Writing the interpreted code is extremely hard (i.e. I'm the only one who has ever done it and it is likely to ever do). Plain C++ will solve the problem.

3) Solving #2 would finally allow me to introduce a new material system (or better to extend the current options).

4) Having all the same building blocks available both for CPUs and GPUs would allow to have the same rendering engines available for both: stuff like BiDir on GPUs, light tracing on GPUs, etc.

5) more fine grained control of GPU memory would allow to have a scene editing on GPU as fast as CPU editing;

And more.

This is what the stinky corpse of OpenCL is costing us at the moment. The draw back is to sell our bodies and souls to NVIDIA.

Blender Foundation is effectively locking in all Blender user base with NVIDIA. Don't have any doubt: if you think to have Cycle X for AMD or Intel, you are drunk. The technical architecture of Cycle X has CUDA written all over the places. There is never going to be a fully functional Cycles X outside CUDA. The best case scenario is to have an half broken support like current Cycle OpenCL support.

Are we going to lock in all LuxCore user base with NVIDIA too ?
I agree with all this here, it would be a great gain in resources and performance.

As I came from MAX, all renderers GPU only work with cuda. I think it's the future, not even AMD's Pro Render works well. I think it would only be worthwhile to continue with AMD if there was a financial contribution by it to Luxcore.


"BiDir on GPUs, light tracing on GPUs" my dream!!!

Re: Cycle X (and OpenCL)

Posted: Mon Apr 26, 2021 10:12 am
by Dade
JulianoLisboa wrote: Mon Apr 26, 2021 12:22 am I think it would only be worthwhile to continue with AMD if there was a financial contribution by it to Luxcore.
Funny historical side note: the only hardware vendor to have ever supported LuxRender is ... NVIDIA. They donated few GPUs to the project some year ago. Even if we were OpenCL-only and LuxMark wasn't exactly putting in good light NVIDIA GPUs. Indeed, they did the donation in hope to have LuxMark more optimized and better running on NVIDIA GPUs. But it still tell you when a company know what it is doing.

Re: Cycle X (and OpenCL)

Posted: Mon Apr 26, 2021 11:03 am
by TAO
Dade wrote: Mon Apr 26, 2021 10:12 am
JulianoLisboa wrote: Mon Apr 26, 2021 12:22 am I think it would only be worthwhile to continue with AMD if there was a financial contribution by it to Luxcore.
Funny historical side note: the only hardware vendor to have ever supported LuxRender is ... NVIDIA. They donated few GPUs to the project some year ago. Even if we were OpenCL-only and LuxMark wasn't exactly putting in good light NVIDIA GPUs. Indeed, they did the donation in hope to have LuxMark more optimized and better running on NVIDIA GPUs. But it still tell you when a company know what it is doing.
That's a good point. It is nice to have a Cuda benchmark in LuxMark if it is not already implemented.

Re: Cycle X (and OpenCL)

Posted: Mon Apr 26, 2021 12:01 pm
by JulianoLisboa
Dade wrote: Mon Apr 26, 2021 10:12 am
JulianoLisboa wrote: Mon Apr 26, 2021 12:22 am I think it would only be worthwhile to continue with AMD if there was a financial contribution by it to Luxcore.
Funny historical side note: the only hardware vendor to have ever supported LuxRender is ... NVIDIA. They donated few GPUs to the project some year ago. Even if we were OpenCL-only and LuxMark wasn't exactly putting in good light NVIDIA GPUs. Indeed, they did the donation in hope to have LuxMark more optimized and better running on NVIDIA GPUs. But it still tell you when a company know what it is doing.
Hello Dade, I am going to use a popular Brazilian saying, I hope you understand: "who does not cry, does not breast". What I mean is, if Nvidia has ever supported Luxcore and AMD has never done so, why should it still support AMD? I think it would be interesting to send an email to Nvidia and say, we are willing to kill the OpenCL of our code, but for that we need financial support. I see no problem in selling the soul to them. AMD never made much effort to be relevant in the 3D market. Not even drivers can do it right. It's what I think.

Re: Cycle X (and OpenCL)

Posted: Mon Apr 26, 2021 12:04 pm
by Sharlybg
Strangelly since quite sometime i'm not able to render big project on Nvidia CUDA/ OPTIX. ONly OPENCL is working on the 2060super i'm working with. I was trying to compare OPTIX vs No Optix on huge assets scene. It constantly crash before starting. And this on official Blendluxcore 2.5 and blender 2.83.
Sometime textures disappear randomlly on some object during final render even if visible in viewport and material preview. Sadly as theses are most of the time big Project i can't send it to DADe to look into it as he need small size repeatable error file for investigation :|

Re: Cycle X (and OpenCL)

Posted: Mon Apr 26, 2021 12:08 pm
by JulianoLisboa
Sharlybg wrote: Mon Apr 26, 2021 12:04 pm Strangelly since quite sometime i'm not able to render big project on Nvidia CUDA/ OPTIX. ONly OPENCL is working on the 2060super i'm working with. I was trying to compare OPTIX vs No Optix on huge assets scene. It constantly crash before starting. And this on official Blendluxcore 2.5 and blender 2.83.
Sometime textures disappear randomlly on some object during final render even if visible in viewport and material preview. Sadly as theses are most of the time big Project i can't send it to DADe to look into it as he need small size repeatable error file for investigation :|
I noticed this, in your video https://www.youtube.com/watch?v=gvo9WLBqNVU, you were using OpenCL, I was wondering why, even having a 2060.

Re: Cycle X (and OpenCL)

Posted: Mon Apr 26, 2021 12:38 pm
by Sharlybg
JulianoLisboa wrote: Mon Apr 26, 2021 12:08 pm
Sharlybg wrote: Mon Apr 26, 2021 12:04 pm Strangelly since quite sometime i'm not able to render big project on Nvidia CUDA/ OPTIX. ONly OPENCL is working on the 2060super i'm working with. I was trying to compare OPTIX vs No Optix on huge assets scene. It constantly crash before starting. And this on official Blendluxcore 2.5 and blender 2.83.
Sometime textures disappear randomlly on some object during final render even if visible in viewport and material preview. Sadly as theses are most of the time big Project i can't send it to DADe to look into it as he need small size repeatable error file for investigation :|
I noticed this, in your video https://www.youtube.com/watch?v=gvo9WLBqNVU, you were using OpenCL, I was wondering why, even having a 2060.
No at that time it was simply the name put by the addon for anything related to GPU computing.And the scene was simple. Soon i will upload a tutorial about Professional Archviz Exterior you will see the kind of project i'm talking about.