<div dir="ltr">Hi mr. Kyriazis. <div>Been wondering if you guys at amd have made any progress, even if it&#39;s only a start. </div><div>Thanks</div><div>David.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-27 21:44 GMT-04:00 Brecht Van Lommel <span dir="ltr">&lt;<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think it&#39;s great to see AMD getting involved like this.<br>
<br>
Splitting the kernel is certainly a challenge, the Cycles megakernel<br>
is quite complicated, and to be honest it&#39;s been pushed further than<br>
it should be. We&#39;ve had to do lots of workarounds and tweaks so that<br>
it runs on NVidia, and it just barely works.<br>
<br>
If the kernel splitting works out, that&#39;s likely to improve Cycles GPU<br>
rendering for everyone, not just for AMD users, but also to better<br>
support features like SSS or volumetrics, and reduce problems with<br>
display responsiveness. So this work is very welcome.<br>
<span class="HOEnZb"><font color="#888888"><br>
Brecht.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Oct 28, 2014 at 1:50 AM, Thomas Dinges &lt;<a href="mailto:blender@dingto.org">blender@dingto.org</a>&gt; wrote:<br>
&gt; Storm, that mail is totally inappropriate.<br>
&gt;<br>
&gt; AMD is offering their help, and whatever you might think about it, you should treat people with respect. Any other behavior is not welcome here and will be stopped.<br>
&gt;<br>
&gt; Thomas<br>
&gt;<br>
&gt; Am 28.10.2014 um 01:34 schrieb storm &lt;<a href="mailto:kartochka22@yandex.ru">kartochka22@yandex.ru</a>&gt;:<br>
&gt;<br>
&gt;&gt; В Пн, 27/10/2014 в 20:34 +0000, Kyriazis, George пишет:<br>
&gt;&gt;&gt; Greetings bf-cycles,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I work for AMD, and we have been thinking about working in the OpenCL kernel (read: have started working on it).  It is, I presume, a well-known fact that the OpenCL implementation has &quot;issues&quot; on AMD.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Our current approach is to split up the OpenCL kernel into multiple (smaller) kernels, in order to get better utilization of the GPU.  I&#39;ve had brief discussions with Martijn, Brecht and Ton, and they all seem eager to finally &quot;fix&quot; (for a lack of a better term)  OpenCL, which is a good sign.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Technical details have not been discussed yet, but an open forum like bf-cycles is a better place for that.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; As a starter point of discussion, I&#39;d like to comment about the main motivation of the kernel split.  As it is well known, the AMD OpenCL implementation has some problems compiling the current OpenCL kernel.  This has been mainly attributed to the length of the kernel, and problems with register allocation.  Although the above is correct, those causes fail to address the main issue, which is the fact that a huge kernel (like cycles) that is a straight-forward port of CPU code, does have a lot of code divergence.  Code divergence causes a lot of workitems go idle during kernel execution, which is not a good thing.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Splitting the kernel allows for each (sub)-kernel to have better GPU utilization, and hence better performance.  As a side-effect, it decreases the size of each kernel, and makes things easier for the register allocator.  So, the current problems that the AMD OpenCL implementation has will not express themselves in a split kernel.  Our current thought is to have those individual kernels communicate via queues.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Any questions / comments / etc. about our approach is welcome, of course.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Appreciated,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; George Kyriazis<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Bf-cycles mailing list<br>
&gt;&gt;&gt; <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
&gt;&gt;&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
&gt;&gt;<br>
&gt;&gt; Enough is enough.<br>
&gt;&gt;<br>
&gt;&gt; Some maybe believe in that 3+year BS, but not I am.<br>
&gt;&gt;<br>
&gt;&gt; Compiler related theory was not discovered 5 years ago, but you and all<br>
&gt;&gt; other ATI/AMD predent that it is (again). You even have group that<br>
&gt;&gt; mastring it in some sense, making Open64 compiler fork.<br>
&gt;&gt;<br>
&gt;&gt; Your company very well avare if all issues, especially dirty internal<br>
&gt;&gt; workarounds because of hardware design complexity, deadlines, marketing<br>
&gt;&gt; department pressure, etc.<br>
&gt;&gt;<br>
&gt;&gt; I am very doubt any &quot;lawyer talk&quot; sentencens as above after your make<br>
&gt;&gt; not Turing complete hardware that can run only exterme limited size<br>
&gt;&gt; program due your make (intentionally, now it is obvious), but same time<br>
&gt;&gt; _claim that it is full complete and respect standards_. It was not, and<br>
&gt;&gt; you very vell aware and still say opposite.<br>
&gt;&gt;<br>
&gt;&gt; I believe that too many years, keep trying tossing code lines, as 1970<br>
&gt;&gt; kid was optimise first BASIC program trying shorten variable names,<br>
&gt;&gt; exchange &quot;case&quot; by &quot;if&quot; chains, manually unroll floatX, damn i cannot<br>
&gt;&gt; remember all that absurd shit i was trying _YEARS_ to make your half<br>
&gt;&gt; assed compiler pass w/o segfault. I even not talk about execution time<br>
&gt;&gt; here.<br>
&gt;&gt;<br>
&gt;&gt; ALl that years NVidia ppl just laughing in face.<br>
&gt;&gt;<br>
&gt;&gt; I wonder what happens if you fix at leaat 2-3 curent big bugs in you own<br>
&gt;&gt; OpenCL compiler and hit another bug (undiscovered yet now because we<br>
&gt;&gt; even cannot reach that corner case), and it will hit again in short<br>
&gt;&gt; splitted slow (because of obviousextra  PCI transfer hit), that mantra<br>
&gt;&gt; you will use again? Not &quot;Split kernel&quot;, but ... &quot;you must make you every<br>
&gt;&gt; line contain Fibonacci number of utf8 chars&quot; or maybe &quot;you must<br>
&gt;&gt; interleave every conditional move with fmad instruction, especially in<br>
&gt;&gt; full moon phase&quot;?<br>
&gt;&gt;<br>
&gt;&gt; Your company too greedy, pissing on every very loyal customer, even such<br>
&gt;&gt; as I am, and you deserve to lose.<br>
&gt;&gt;<br>
&gt;&gt; You should climb Mount Fujiyama once in your life. Climb it twice and<br>
&gt;&gt; you&#39;re a fool. (Japanese Proverb)<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Bf-cycles mailing list<br>
&gt;&gt; <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
&gt;&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Bf-cycles mailing list<br>
&gt; <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</div></div></blockquote></div><br></div>