<div dir="ltr"><div>I think llvm/clang and SPIR-V will at some point lead to a situation where one could just use some restricted C++ 14/17 across devices.<br>A lot of parties seem to be going in this direction.  Transcompiling OpenCL to CUDA should not be to hard to do but seems almost impossible to do perfect and even more so given that CUDA is defined only through what nvidia decides it needs.<br><br></div><div>I hope SPIR-V will take of separating the front- and back-ends of the toolchain.<br><br><a href="http://llvm.org/devmtg/2015-10/slides/Wu-OptimizingLLVMforGPGPU.pdf">http://llvm.org/devmtg/2015-10/slides/Wu-OptimizingLLVMforGPGPU.pdf</a>  could become very interesting also.<br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 1:34 AM, Brecht Van Lommel <span dir="ltr">&lt;<a href="mailto:brechtvanlommel@pandora.be" target="_blank">brechtvanlommel@pandora.be</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, my comment about OpenCL dying was overly dramatic, I&#39;m just<br>
wondering what will happen long term. I&#39;m still cautiously optimistic<br>
AMD and Intel will have a good implementation of OpenCL C++ at some<br>
point, but that will probably take another year or so.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Nov 17, 2015 at 8:14 AM, Sergey Sharybin &lt;<a href="mailto:sergey.vfx@gmail.com">sergey.vfx@gmail.com</a>&gt; wrote:<br>
&gt; While tis is an interesting concept, will it be same rock-solid as bare CUDA<br>
&gt; itself or will have same weird issues as we&#39;ve got with OpenCL kernels?<br>
&gt; That&#39;s more a rithorical questions, but something we should keep in mind.<br>
&gt;<br>
&gt; As for OpenCL -- to my knowledge Intel is currently very interested in it.<br>
&gt; Also AMD improved OpenCL quite a lot in the past year, so don&#39;t think OpenCL<br>
&gt; really dying.<br>
&gt;<br>
&gt; On Tue, Nov 17, 2015 at 2:24 AM, Brecht Van Lommel<br>
&gt; &lt;<a href="mailto:brechtvanlommel@pandora.be">brechtvanlommel@pandora.be</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; This seems to be AMD&#39;s equivalent to the NVidia CUDA toolkit. The main<br>
&gt;&gt; interesting thing for Cycles is that this can compile to both AMD GPUs<br>
&gt;&gt; and NVidia GPUs (still using the CUDA toolkit underneath though).<br>
&gt;&gt;<br>
&gt;&gt; It remains to be seen if using this is actually a good idea for<br>
&gt;&gt; Cycles, there&#39;s a bunch of questions:<br>
&gt;&gt;<br>
&gt;&gt; * What are the advantages over OpenCL, why use this instead of an open<br>
&gt;&gt; standard?<br>
&gt;&gt; * What about Intel GPUs? Do we need OpenCL for those anyway, and if so<br>
&gt;&gt; why not use OpenCL for AMD too?<br>
&gt;&gt; * Or is this a sign that OpenCL is slowly dying, and eventually we&#39;ll<br>
&gt;&gt; have no choice but to use this?<br>
&gt;&gt; * Will all CUDA features that we use be available and will performance<br>
&gt;&gt; be equally good?<br>
&gt;&gt; * Will this work on OS X? NVidia has their own extra CUDA driver<br>
&gt;&gt; there, will AMD provide the same?<br>
&gt;&gt; * Does it allow dynamic loading, so that a single Blender executable<br>
&gt;&gt; works on all computers regardless of the GPU?<br>
&gt;&gt;<br>
&gt;&gt; IF this can replace CUDA and OpenCL backends in Cycles then that could<br>
&gt;&gt; simplify things, but it would be unfortunate to give up on OpenCL and<br>
&gt;&gt; go with something proprietary instead.<br>
&gt;&gt;<br>
&gt;&gt; I still hope the eventually there will be proper OpenCL support from<br>
&gt;&gt; all vendors, or even better, native support for GPUs in LLVM Clang.<br>
&gt;&gt; But so far the fragmentation isn&#39;t getting any better, with Apple<br>
&gt;&gt; choosing Metal over Vulkan, NVidia not supporting OpenCL properly, and<br>
&gt;&gt; OpenCL not providing enough control for optimal CPU performance.<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Nov 16, 2015 at 5:52 PM, Zauber Paracelsus &lt;<a href="mailto:zauber@gridmail.org">zauber@gridmail.org</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; So, AMD has launched what they call the Boltzmann Initiative, with the<br>
&gt;&gt; &gt; apparent aim to create a compiler that allows CUDA to work on AMD<br>
&gt;&gt; &gt; graphics hardware.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; And I just have to wonder: what affect would this have on<br>
&gt;&gt; &gt; Blender/Cycles, especially in light of the relatively recent addition of<br>
&gt;&gt; &gt; the OpenCL split-kernel work?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; PS: Sorry for not providing a link, but doing so caused my original<br>
&gt;&gt; &gt; message to be blocked by the spam filters.<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" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><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" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; With best regards, Sergey Sharybin<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" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
&gt;<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" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</div></div></blockquote></div><br></div>