<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adventures in OpenCL Part 2: Particles with OpenGL</title>
	<atom:link href="http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/feed/" rel="self" type="application/rss+xml" />
	<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adventures-in-opencl-part-2-particles-with-opengl</link>
	<description>casin&#039; the joint since &#039;85</description>
	<lastBuildDate>Fri, 17 Feb 2012 20:30:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Eustachy</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-1474</link>
		<dc:creator>Eustachy</dc:creator>
		<pubDate>Tue, 22 Nov 2011 09:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-1474</guid>
		<description>In my application, I had a problem creating shared context under Mac OS X (10.6.8) with CL_INVALID_GL_OBJECT error returned by clCreateFromGLBuffer(). Your example failed to run for the same reason. Turns out it works fine if you create VBO with GL_STATIC_DRAW instead of GL_DYNAMIC_DRAW. Not sure what is the reason, but it seems there is one, because the &lt;a href=&quot;http://developer.apple.com/library/mac/#samplecode/OpenCL_Procedural_Geometric_Displacement_Example/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008192&quot; rel=&quot;nofollow&quot;&gt; example &lt;/a&gt; I found on developer.apple.com explicitly defines this param as STATIC_DRAW if gl interop is enabled (and uses DYNAMIC_DRAW when gl interop is disabled).</description>
		<content:encoded><![CDATA[<p>In my application, I had a problem creating shared context under Mac OS X (10.6.8) with CL_INVALID_GL_OBJECT error returned by clCreateFromGLBuffer(). Your example failed to run for the same reason. Turns out it works fine if you create VBO with GL_STATIC_DRAW instead of GL_DYNAMIC_DRAW. Not sure what is the reason, but it seems there is one, because the <a href="http://developer.apple.com/library/mac/#samplecode/OpenCL_Procedural_Geometric_Displacement_Example/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008192" rel="nofollow"> example </a> I found on developer.apple.com explicitly defines this param as STATIC_DRAW if gl interop is enabled (and uses DYNAMIC_DRAW when gl interop is disabled).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adventures in PyOpenCL: Part 2, Particles with PyOpenGL &#124; enj</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-719</link>
		<dc:creator>Adventures in PyOpenCL: Part 2, Particles with PyOpenGL &#124; enj</dc:creator>
		<pubDate>Tue, 22 Mar 2011 21:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-719</guid>
		<description>[...] We accomplish this with two Python modules, PyOpenCL and PyOpenGL. This is a port of my C++ OpenCL tutorial, but with much less code and all the splendors of [...]</description>
		<content:encoded><![CDATA[<p>[...] We accomplish this with two Python modules, PyOpenCL and PyOpenGL. This is a port of my C++ OpenCL tutorial, but with much less code and all the splendors of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karimkhan</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-592</link>
		<dc:creator>karimkhan</dc:creator>
		<pubDate>Thu, 13 Jan 2011 09:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-592</guid>
		<description>Hi everybody ,
I tried to run the part2.x  , but  its giving segmenation fault , what should I do ca anyone suggest ,
enja I hope you will do it...

Thanks...</description>
		<content:encoded><![CDATA[<p>Hi everybody ,<br />
I tried to run the part2.x  , but  its giving segmenation fault , what should I do ca anyone suggest ,<br />
enja I hope you will do it&#8230;</p>
<p>Thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-589</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Wed, 12 Jan 2011 10:47:52 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-589</guid>
		<description>Nice tutorials so far.  Have you considered getting into PyOpenCL?</description>
		<content:encoded><![CDATA[<p>Nice tutorials so far.  Have you considered getting into PyOpenCL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garet</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-551</link>
		<dc:creator>Garet</dc:creator>
		<pubDate>Tue, 28 Dec 2010 11:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-551</guid>
		<description>oh btw, i linked to:
libopengl32.a
libglu32.a
libfreeglut.a
OpenCL.lib

in that order


also i changed the top of part2.cpp to look like:


#define GLUT_DISABLE_ATEXIT_HACK
#define GLEW_STATIC

#include &lt;windows.h&gt;
//OpenGL stuff
#include &lt;glew.c&gt;
#if defined __APPLE__ &#124;&#124; defined(MACOSX)
    #include &lt;GLUT/glut.h&gt;
#else
    #include &lt;GL/glut.h&gt;
#endif
#include &lt;GL/gl.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;cstdlib&gt;
#include &lt;sstream&gt;
#include &lt;iomanip&gt;
#include &lt;math.h&gt;
#include &lt;vector&gt;
#include &quot;cll.h&quot;
#include &quot;util.h&quot;
#include &lt;string&gt;
#include &lt;string.h&gt;


and i removed any place i saw includes being recalled that i could find based on that order.

the top of main.cpp just looks like:
#include &quot;part2.cpp&quot;

#define NUM_PARTICLES 20000
CL* example; 

etc,...

and maybe the more important thing with glew is that i just went ahead and cheated and plopped the glew.c file into mingw/include and glew.h into mingw/include/GL
and then just #include&lt;glew.c&gt; to avoid some strange link errors ^_^;;

glew.h should be at top of glew.c ala
#include &lt;GL/glew.h&gt;
#if defined(_WIN32)
#  include &lt;GL/wglew.h&gt;
#elif !defined(__APPLE__) &#124;&#124; defined(GLEW_APPLE_GLX)
#  include &lt;GL/glxew.h&gt;
#endif


which i think should shed some light on that glx business.. prolly related to GLEW_APPLE_GLX</description>
		<content:encoded><![CDATA[<p>oh btw, i linked to:<br />
libopengl32.a<br />
libglu32.a<br />
libfreeglut.a<br />
OpenCL.lib</p>
<p>in that order</p>
<p>also i changed the top of part2.cpp to look like:</p>
<p>#define GLUT_DISABLE_ATEXIT_HACK<br />
#define GLEW_STATIC</p>
<p>#include &lt;windows.h&gt;<br />
//OpenGL stuff<br />
#include &lt;glew.c&gt;<br />
#if defined __APPLE__ || defined(MACOSX)<br />
    #include &lt;GLUT/glut.h&gt;<br />
#else<br />
    #include &lt;GL/glut.h&gt;<br />
#endif<br />
#include &lt;GL/gl.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;cstdlib&gt;<br />
#include &lt;sstream&gt;<br />
#include &lt;iomanip&gt;<br />
#include &lt;math.h&gt;<br />
#include &lt;vector&gt;<br />
#include &quot;cll.h&quot;<br />
#include &quot;util.h&quot;<br />
#include &lt;string&gt;<br />
#include &lt;string.h&gt;</p>
<p>and i removed any place i saw includes being recalled that i could find based on that order.</p>
<p>the top of main.cpp just looks like:<br />
#include &quot;part2.cpp&quot;</p>
<p>#define NUM_PARTICLES 20000<br />
CL* example; </p>
<p>etc,&#8230;</p>
<p>and maybe the more important thing with glew is that i just went ahead and cheated and plopped the glew.c file into mingw/include and glew.h into mingw/include/GL<br />
and then just #include&lt;glew.c&gt; to avoid some strange link errors ^_^;;</p>
<p>glew.h should be at top of glew.c ala<br />
#include &lt;GL/glew.h&gt;<br />
#if defined(_WIN32)<br />
#  include &lt;GL/wglew.h&gt;<br />
#elif !defined(__APPLE__) || defined(GLEW_APPLE_GLX)<br />
#  include &lt;GL/glxew.h&gt;<br />
#endif</p>
<p>which i think should shed some light on that glx business.. prolly related to GLEW_APPLE_GLX</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garet</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-549</link>
		<dc:creator>Garet</dc:creator>
		<pubDate>Tue, 28 Dec 2010 10:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-549</guid>
		<description>Got it up and running in Code::Blocks on Windows 7 x64 with MinGW

Thanks much =D Will be very helpful in conceptualizin&#039; opencl</description>
		<content:encoded><![CDATA[<p>Got it up and running in Code::Blocks on Windows 7 x64 with MinGW</p>
<p>Thanks much =D Will be very helpful in conceptualizin&#8217; opencl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Calin</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-386</link>
		<dc:creator>Calin</dc:creator>
		<pubDate>Wed, 24 Nov 2010 09:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-386</guid>
		<description>Thanks for sharing your knowledge. Great tutorial.
I tested it on Ubuntu 10.04 with ATI 4650, StreamSdk 2.2 and it perfectly works.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your knowledge. Great tutorial.<br />
I tested it on Ubuntu 10.04 with ATI 4650, StreamSdk 2.2 and it perfectly works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enj</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-291</link>
		<dc:creator>enj</dc:creator>
		<pubDate>Tue, 14 Sep 2010 22:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-291</guid>
		<description>@Patrick,
Thanks for the feedback, unfortunately I don&#039;t have a Windows machine handy to test with, but I did check and glx.h is not necessary on Windows (this pertains to functions on linux to get the OpenGL context).
You should be able to link to those standard OpenGL libraries, is NetBeans using the CMakeLists.txt file or does it have its own build system?

At some point I&#039;ll be testing everything on Windows, but right now my time is focused on my thesis project (which is where the knowledge for these tutorials comes from) so unfortunately I can&#039;t help just yet.</description>
		<content:encoded><![CDATA[<p>@Patrick,<br />
Thanks for the feedback, unfortunately I don&#8217;t have a Windows machine handy to test with, but I did check and glx.h is not necessary on Windows (this pertains to functions on linux to get the OpenGL context).<br />
You should be able to link to those standard OpenGL libraries, is NetBeans using the CMakeLists.txt file or does it have its own build system?</p>
<p>At some point I&#8217;ll be testing everything on Windows, but right now my time is focused on my thesis project (which is where the knowledge for these tutorials comes from) so unfortunately I can&#8217;t help just yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick A.</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-286</link>
		<dc:creator>Patrick A.</dc:creator>
		<pubDate>Fri, 10 Sep 2010 21:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-286</guid>
		<description>Really great tutorial! I&#039;m trying to compile your source code under Netbeans 6.9.1 for Windows 7 but it seems that the file GL/glx.h is missing. What is this file used for? Also, which libraries are you linking your GLUT and OpenGL things to, as I am failing to link the source code to the standard libraries (Glew32.lib, Glu32.lib, OpenGL32.lib and Glut32.lib)...
Thanks,</description>
		<content:encoded><![CDATA[<p>Really great tutorial! I&#8217;m trying to compile your source code under Netbeans 6.9.1 for Windows 7 but it seems that the file GL/glx.h is missing. What is this file used for? Also, which libraries are you linking your GLUT and OpenGL things to, as I am failing to link the source code to the standard libraries (Glew32.lib, Glu32.lib, OpenGL32.lib and Glut32.lib)&#8230;<br />
Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blenderificus</title>
		<link>http://enja.org/2010/08/27/adventures-in-opencl-part-2-particles-with-opengl/comment-page-1/#comment-266</link>
		<dc:creator>blenderificus</dc:creator>
		<pubDate>Mon, 30 Aug 2010 09:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://enja.org/?p=278#comment-266</guid>
		<description>thanks for sharing more insigt into programming particles for openCL.  Cant wait for your work to make in into trunk!</description>
		<content:encoded><![CDATA[<p>thanks for sharing more insigt into programming particles for openCL.  Cant wait for your work to make in into trunk!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d3a9pqeyre6pa0.cloudfront.net

Served from: enja.org @ 2012-02-22 12:51:00 -->
