mikeash.com pyblog/friday-qa-2010-04-02-opencl-basics.html commentshttp://www.mikeash.com/?page=pyblog/friday-qa-2010-04-02-opencl-basics.html#commentsmikeash.com Recent CommentsThu, 28 Mar 2024 23:15:18 GMTPyRSS2Gen-1.0.0http://blogs.law.harvard.edu/tech/rssFilip - 2011-10-24 12:50:03http://www.mikeash.com/?page=pyblog/friday-qa-2010-04-02-opencl-basics.html#commentsLets say you are calculating a huge set of numbers, how do you stop the kernel when the user says "no more, i am bored and want to quit, but not the app, only the calculating". <br /> <br />Is that even possible in openCL ?7c70f419cbda3575f117213811146d2aMon, 24 Oct 2011 12:50:03 GMTpyth - 2010-04-06 08:56:14http://www.mikeash.com/?page=pyblog/friday-qa-2010-04-02-opencl-basics.html#commentsFor a in depth discussion on work sizes and work items check out the excellent opencl tutorial podcast over on macresearch: <a href="http://www.macresearch.org/opencl">http://www.macresearch.org/opencl</a>. <br />It explains what SMUGOpenCL does under the hood and more (probably more then you want to know...) 65d3bcad3df9db1048feefaf3ed11d0aTue, 06 Apr 2010 08:56:14 GMTKyle Sluder - 2010-04-05 06:20:55http://www.mikeash.com/?page=pyblog/friday-qa-2010-04-02-opencl-basics.html#commentsWouldn't it be nice if we could hand off some LLVM byte code instead of just raw program text? I'm thinking this would be even more useful on the iPhone for pixel shaders, but even on the desktop for OpenCL it would be nice to have already performed the parsing and some static analysis.4af4e539b5003b1b67e0d23e1a92e824Mon, 05 Apr 2010 06:20:55 GMTmikeash - 2010-04-03 00:27:35http://www.mikeash.com/?page=pyblog/friday-qa-2010-04-02-opencl-basics.html#commentsYou would not believe how many times I made that typo. Thanks for pointing out the one I missed. <br /> <br />In answer to your question, that probably is not guaranteed. I didn't even think about that. You'd probably need to make the final results array use a larger data type in order to be safe.3fa13329d17b9fd67d8dfb839aee2dcaSat, 03 Apr 2010 00:27:35 GMTnatevw - 2010-04-02 17:56:52http://www.mikeash.com/?page=pyblog/friday-qa-2010-04-02-opencl-basics.html#commentsA question, and a tip: <br /> <br />Does OpenCL guarantee that setting a single byte in a shared array like your kernel does will be "thread" safe? <br /> <br />During the SL seeds, Ian Ollman posted to the Developer Forums "Why you should vectorize and some tips to get started". Unfortunately, my ADC membership has since expired and it doesn't seem to have been converted to a tech note, but if you have access it could help you get more performance out of OpenCL.9763cd9302527b90bc6883763d3cd4d5Fri, 02 Apr 2010 17:56:52 GMTnatevw - 2010-04-02 16:41:06http://www.mikeash.com/?page=pyblog/friday-qa-2010-04-02-opencl-basics.html#commentsI think you mean "SMUGOpenCL" in the second paragraph. Other than that, this comment is left intentionally useless because I haven't finished the article.a2721340bf3469c997d6f8e6a58ff8dbFri, 02 Apr 2010 16:41:06 GMT