<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Marcio<div><br></div><div>K then, you made the point. Exactly the vectorizations and structs are the problem here.</div><div>I wonder why i had no probs running on cpu then, but the code already changed a lot.</div><div>I will look into your patch ( aka trying out ) asap.</div><div><br></div><div>Thx for investigation.</div><div><br></div><div>Jens</div><div><br></div><div><br></div><div><br></div><div><br><div><div>Am 20.12.2012 um 11:56 schrieb Jens Verwiebe &lt;<a href="mailto:info@jensverwiebe.de">info@jensverwiebe.de</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Marcio<div><br></div><div>You make a mistake in thinking here. The openCL problem is not a general one, but arises</div><div>on gpu's, expecially AMD. Using cpu mode is good for initially debugging and i too work</div><div>that way, but it won't help adapting code to gfx vendors.</div><div><br></div><div>What i found was that using the ofline compiler gives much better results than the cvm compiler</div><div>from ati, but still has problems ( overwriting structs in memory ? ) elaborating all features.</div><div><br></div><div>So the way to go would be:&nbsp;</div><div>- adapt/refine/simplyfy code to work on ati gpu</div><div>or</div><div>- wait for adressed issues in the ati openCL components</div><div><br></div><div>Jens</div><div><br></div><div><br></div><div><br><div><div>Am 20.12.2012 um 10:48 schrieb Marcio Andrade &lt;<a href="mailto:migueletto@yahoo.com">migueletto@yahoo.com</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>I have submited patch #33626. Pasting from the description:<br><br>This patch has three main goals:<br><br>1) Enable OpenCL rendering on CPU for Cycles (device_opencl.cpp).<br><br>2)<br> Provide debug information about the OpenCL platform and devices. Could <br>be helpful for understanding OpenCL problems (util_opencl.cpp).<br><br>3)<br> Fixes to the OpenCL kernel in order to make it compile on Mac platforms<br> for CPU (kernel.cl, kernel_displace.h, kernel_types.h).<br>NOTE: I have<br> enabled kernel_ocl_shader in kernel.cl, even though it is not beeing <br>called. It was done to test how the compilation would perform.<br><br>Patched againts revision 53178.<br><br>I<br> am not sure if any of this is really intended for merging, but it can <br>help someone trying to understand/debug OpenCL on his/her platform.<br><br>Regards,<br>migueletto<br><br><br><br>----- Mensagem original -----<br>De: Ton Roosendaal &lt;<a href="mailto:ton@blender.org">ton@blender.org</a>&gt;<br>Para: Marcio Andrade &lt;<a href="mailto:migueletto@yahoo.com">migueletto@yahoo.com</a>&gt;; <a href="mailto:bf-cycles@blender.org">bf-cycles@blender.org</a><br>Cc: <br>Enviadas: Terça-feira, 18 de Dezembro de 2012 9:46<br>Assunto: Re: [Bf-cycles] Apple OpenCL and Cycles<br><br>Hi Marcio,<br><br>You can submit code changes via our patch tracker.<br><a href="http://projects.blender.org/tracker/?atid=127&amp;group_id=9&amp;func=browse">http://projects.blender.org/tracker/?atid=127&amp;group_id=9&amp;func=browse</a><br><br>(run svn diff &gt; patch.txt)<br><br><a href="http://blender.org">blender.org</a> has a free ftp upload facility:<br><br>ftp to: <a href="http://ftp.bender.org">ftp.bender.org</a><br>User: Anonymous<br>cd to directory "incoming" and put the file.<br><br>The link will appear here: <a href="http://download.blender.org/ftp/incoming/">http://download.blender.org/ftp/incoming/</a><br><br>BTW: Anonymous ftp only allows write-once, no delete or overwrites.<br><br>Thanks!<br><br>-Ton-<br><br>------------------------------------------------------------------------<br>Ton Roosendaal&nbsp; Blender Foundation&nbsp; <a href="mailto:ton@blender.org">ton@blender.org</a>&nbsp; &nbsp; <a href="http://www.blender.org">www.blender.org</a><br>Blender Institute&nbsp; &nbsp;Entrepotdok 57A&nbsp; 1018AD Amsterdam&nbsp; &nbsp;The Netherlands<br><br>On 18 Dec, 2012, at 11:13, Marcio Andrade wrote:<br><br><blockquote type="cite">Hi,<br><br>It is \blender\intern\cycles\device\device_opencl.cpp<br><br>I also had to change the maximum local workgroup size for execution. For 2-dimension workgroups, the Intel CPU accepts at most 1024 x 1, and blender was submiting a workgroup of 11 x 11 for kernel_ocl_tonemap, so I changed it to submit 128 x 1.<br><br>I could email the changes to you, if you like, in order to not pollute the list.<br><br>Regards,<br>migueletto<br><br><br><br>________________________________<br>De: Nazim Mer &lt;<a href="mailto:nazim.mer@gmail.com">nazim.mer@gmail.com</a>&gt;<br>Para: <a href="mailto:bf-cycles@blender.org">bf-cycles@blender.org</a> <br>Enviadas: Segunda-feira, 17 de Dezembro de 2012 15:53<br>Assunto: Re: [Bf-cycles] Apple OpenCL and Cycles<br><br><br>Hi,<br>Can you post the directory in which the&nbsp; device_opencl.cpp file is contained in...(is this file the same among st all platforms)<br><br>as well as:<br>what the final file should look like once changes are made...<br><br>OR <br>would enabling CPU based Opencl be a target for the official blender build " but certainly a good target for the next release."<br>i.e. Blender 2.65a....<br><br><br><br>On 17 December 2012 15:35, Ton Roosendaal &lt;<a href="mailto:ton@blender.org">ton@blender.org</a>&gt; wrote:<br><br>Hi Marcio,<br><blockquote type="cite"><br>Our OS X platform maintainer - Jens Verwiebe - reported similar good results.<br>It hasn't been taken further yet... but certainly a good target for the next release.<br><br>Could you upload your compiled blender.app for others to check?<br><br>-Ton-<br><br>------------------------------------------------------------------------<br>Ton Roosendaal&nbsp; Blender Foundation&nbsp; <a href="mailto:ton@blender.org">ton@blender.org</a>&nbsp; &nbsp; <a href="http://www.blender.org">www.blender.org</a><br>Blender Institute&nbsp; &nbsp;Entrepotdok 57A&nbsp; 1018AD Amsterdam&nbsp; &nbsp;The Netherlands<br><br><br>On 17 Dec, 2012, at 13:57, Marcio Andrade wrote:<br><br><blockquote type="cite">Hello,<br><br>I read that OpenCL development on Cycles is on hold, mainly because of compiler/driver problems in the AMD SDK. I have been doing some experiments with OpenCL on a Mac, and so far I did not encounter thouse kind of problems. After making some small changes to the kernel (basically enabling some defines that were commented out in kernel_types.h and fixing one compile error), I gave it a try.<br><br>Compilation is fast and does not give memory errors. On my system the kernel is compiled in under 5 seconds. My Mac has a Intel HD 3000 GPU, which does not support OpenCL, so in order to make these tests I enabled OpenCL on the CPU (a small change to device_opencl.cpp). When I run the kernel in Blender, rendering time is close to the normal render using CPU, which is expected, since OpenCL Kernel on CPU should be close to the C++ Kernel on CPU.<br><br>Apple is the original author of OpenCL, and OpenCL support on Macs seems to be pretty decent (no need to install anything, it is already bundled). So, is there anyone else trying Cycles/OpenCL on Apple hardware ? I would like to know how OpenCL performs on a Mac with a true GPU, to see if its worth pursuing this direction.<br><br><br>Regards,<br>migueletto<br><br>_______________________________________________<br>Bf-cycles mailing list<br><a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>http://lists.blender.org/mailman/listinfo/bf-cycles<br></blockquote><br>_______________________________________________<br>Bf-cycles mailing list<br><a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>http://lists.blender.org/mailman/listinfo/bf-cycles<br><br></blockquote><br>_______________________________________________<br>Bf-cycles mailing list<br><a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>http://lists.blender.org/mailman/listinfo/bf-cycles<br>_______________________________________________<br>Bf-cycles mailing list<br>Bf-cycles@blender.org<br>http://lists.blender.org/mailman/listinfo/bf-cycles<br></blockquote>_______________________________________________<br>Bf-cycles mailing list<br><a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>http://lists.blender.org/mailman/listinfo/bf-cycles<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><span class="Apple-style-span" style="font-size: 12px; ">_____________________________________</span></div><div><span class="Apple-style-span" style="font-size: 12px; "><div><br class="khtml-block-placeholder"></div><div style="text-align: left; ">Jens Verwiebe</div><div style="text-align: left; ">Allerskehre 44&nbsp; -&nbsp;&nbsp;22309 Hamburg</div><div style="text-align: left; "><br class="khtml-block-placeholder"></div><div style="text-align: left; ">Tel.: +49 40 68 78 50</div><div style="text-align: left; ">mobil: +49 172 400 49 07</div><div>mailto:&nbsp;<a href="mailto:info@jensverwiebe.de"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">info@jensverwiebe.de</span></a></div><div>web:&nbsp;&nbsp;<a href="http://www.jensverwiebe.de/"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">http://www.jensverwiebe.de</span></a></div><div style="text-align: left; ">_____________________________________</div></span></div></span>
</div>
<br></div></div>_______________________________________________<br>Bf-cycles mailing list<br><a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>http://lists.blender.org/mailman/listinfo/bf-cycles<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><span class="Apple-style-span" style="font-size: 12px; ">_____________________________________</span></div><div><span class="Apple-style-span" style="font-size: 12px; "><div><br class="khtml-block-placeholder"></div><div style="text-align: left; ">Jens Verwiebe</div><div style="text-align: left; ">Allerskehre 44&nbsp; -&nbsp;&nbsp;22309 Hamburg</div><div style="text-align: left; "><br class="khtml-block-placeholder"></div><div style="text-align: left; ">Tel.: +49 40 68 78 50</div><div style="text-align: left; ">mobil: +49 172 400 49 07</div><div>mailto:&nbsp;<a href="mailto:info@jensverwiebe.de"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">info@jensverwiebe.de</span></a></div><div>web:&nbsp;&nbsp;<a href="http://www.jensverwiebe.de/"><span class="Apple-style-span" style="color: rgb(0, 0, 238); ">http://www.jensverwiebe.de</span></a></div><div style="text-align: left; ">_____________________________________</div></span></div></span>
</div>
<br></div></body></html>