<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[opencl]]></title><description><![CDATA[<p>hallo hab da ein kleines Problem.</p>
<p>ich will opencl benutzen um auf der grafikkarte zu rechnen.</p>
<p>so hab jetzt einfach mal das tutorial <a href="http://developer.amd.com/gpu/ATIStreamSDK/pages/TutorialOpenCL.aspx" rel="nofollow">http://developer.amd.com/gpu/ATIStreamSDK/pages/TutorialOpenCL.aspx</a></p>
<p>angefangen.</p>
<pre><code>int main()
{

 cl_int err = CL_SUCCESS;

 cl::Context context(CL_DEVICE_TYPE_CPU, 0, NULL, NULL, &amp;err); 

 ersterTest e;
 e.checkErr(err, &quot;Conext::Context()&quot;);

	system(&quot;pause&quot;);
	return 0;
}
</code></pre>
<p>bekomme dann folgenden fehler (linker fehler)</p>
<blockquote>
<p>1&gt;------ Erstellen gestartet: Projekt: OpenCl, Konfiguration: Debug<br />
1&gt;Main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_clCreateContextFromType&quot; in Funktion &quot;&quot;public: __thiscall cl::Context::Context(unsigned __int64,int <em>,void (__cdecl</em>)(char const *,void const *,unsigned int,void *),void *,int *)&quot; (??0Context@cl@@QAE@_KPAHP6AXPBDPBXIPAX@Z41@Z)&quot;.<br />
1&gt;Main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_clReleaseContext&quot; in Funktion &quot;&quot;public: static int __cdecl cl::detail::ReferenceHandler&lt;struct _cl_context *&gt;::release(struct _cl_context *)&quot; (?release@?========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========</p>
</blockquote>
<p>die funktion clCreateContextFromTypesieht in der headerdatei si aus</p>
<p>extern sagt ja soweit ich weiss das die funktion bekannt gemacht wird aber nicht gesagt wird wo sie zu finden ist.</p>
<p>ich glaube hier ist das problem. wenn ich mich nicht irre wie kann ich mein problem jetzt lösen?</p>
<p>der header &lt;CL/cl.hpp&gt;<br />
ist inkludiert, dieser inkludiert die weiteren header. diese sind wiederum bekannt.</p>
<pre><code>extern CL_API_ENTRY cl_context CL_API_CALL
clCreateContextFromType(const cl_context_properties * /* properties */,
                        cl_device_type                /* device_type */,
                        void (*pfn_notify)(const char *, const void *, size_t, void *) /* pfn_notify */,
                        void *                        /* user_data */,
                        cl_int *                      /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/258008/opencl</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 14:53:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/258008.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Jan 2010 17:09:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:09:52 GMT]]></title><description><![CDATA[<p>hallo hab da ein kleines Problem.</p>
<p>ich will opencl benutzen um auf der grafikkarte zu rechnen.</p>
<p>so hab jetzt einfach mal das tutorial <a href="http://developer.amd.com/gpu/ATIStreamSDK/pages/TutorialOpenCL.aspx" rel="nofollow">http://developer.amd.com/gpu/ATIStreamSDK/pages/TutorialOpenCL.aspx</a></p>
<p>angefangen.</p>
<pre><code>int main()
{

 cl_int err = CL_SUCCESS;

 cl::Context context(CL_DEVICE_TYPE_CPU, 0, NULL, NULL, &amp;err); 

 ersterTest e;
 e.checkErr(err, &quot;Conext::Context()&quot;);

	system(&quot;pause&quot;);
	return 0;
}
</code></pre>
<p>bekomme dann folgenden fehler (linker fehler)</p>
<blockquote>
<p>1&gt;------ Erstellen gestartet: Projekt: OpenCl, Konfiguration: Debug<br />
1&gt;Main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_clCreateContextFromType&quot; in Funktion &quot;&quot;public: __thiscall cl::Context::Context(unsigned __int64,int <em>,void (__cdecl</em>)(char const *,void const *,unsigned int,void *),void *,int *)&quot; (??0Context@cl@@QAE@_KPAHP6AXPBDPBXIPAX@Z41@Z)&quot;.<br />
1&gt;Main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;_clReleaseContext&quot; in Funktion &quot;&quot;public: static int __cdecl cl::detail::ReferenceHandler&lt;struct _cl_context *&gt;::release(struct _cl_context *)&quot; (?release@?========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========</p>
</blockquote>
<p>die funktion clCreateContextFromTypesieht in der headerdatei si aus</p>
<p>extern sagt ja soweit ich weiss das die funktion bekannt gemacht wird aber nicht gesagt wird wo sie zu finden ist.</p>
<p>ich glaube hier ist das problem. wenn ich mich nicht irre wie kann ich mein problem jetzt lösen?</p>
<p>der header &lt;CL/cl.hpp&gt;<br />
ist inkludiert, dieser inkludiert die weiteren header. diese sind wiederum bekannt.</p>
<pre><code>extern CL_API_ENTRY cl_context CL_API_CALL
clCreateContextFromType(const cl_context_properties * /* properties */,
                        cl_device_type                /* device_type */,
                        void (*pfn_notify)(const char *, const void *, size_t, void *) /* pfn_notify */,
                        void *                        /* user_data */,
                        cl_int *                      /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1833105</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833105</guid><dc:creator><![CDATA[xadi_E]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:13:14 GMT]]></title><description><![CDATA[<p>Du musst noch eine Objektcode-Library dazulinken. (opencl.obj/.o/.a oder so), in den Headern findest du vmtl. nur Prototypen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833111</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:13:14 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:20:27 GMT]]></title><description><![CDATA[<p>im tutorial steht daüber nichts.</p>
<p>nun gut woher weiss ich dann welche ich dazu linken muss und wo finde ich die?</p>
<p>wenn ich was dazu linken will dann ´muss ich doch unter linker -&gt; Eingabe -&gt; zusätzliche Abhängikeiten gehen<br />
oder?</p>
<p>dort kann ich aber nicht browsen , kann nur manuell eintippen und noch auf makros klicken.</p>
<p>wie gebe ich da die libs ein? wobei ich nicht mal weiss welche</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833117</guid><dc:creator><![CDATA[xadi_E]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:20:27 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:22:50 GMT]]></title><description><![CDATA[<p>ich denke es ist die opencl.lib</p>
<p>kann das sein? ich weiss auch wo die ist habs auch schon über #pragma comment(lib, &quot;OpenCL.lib&quot;)versucht wobei ich dann die opencl.lib in den projektordner kopiert habe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833121</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833121</guid><dc:creator><![CDATA[xadi_E]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:22:50 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:27:41 GMT]]></title><description><![CDATA[<p>Ja, es kann auch eine .lib sein, die Datei sollte richtig sein. Entweder du schiebst die Datei dorthin, wo auch deine CPPs sind und fügst die vorhandene Datei dem Projekt hinzu, oder du machst einen Eintrag unter Optionen, in welchem Pfad die IDE nach libs suchen soll und fügst die lib, wie du's gesagt hast, entweder mit Projektoptionen o. pragma hinzu. Der Weg mit den Standardpfaden ist der gängigste (o. DLLs), Google wird dir helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833125</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:27:41 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:34:25 GMT]]></title><description><![CDATA[<p>ja das hab ich ja gemacht, da wo die cpps sind ist die lib datei und hab sie über #pragma comment(lib, &quot;OpenCL.lib&quot;)<br />
denke ich hinzugefügt.<br />
der fehler kommt aber trotzdem.</p>
<p>hab auch über projekt vorhandenes elemt hinzufühen die lib datei hizugefügt.<br />
sie ist jetzt im projektbaum zu sehen.</p>
<p>ich google schon ungefähr seit 12 uhr <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":-("
      alt="😞"
    /><br />
hab auch einen post in diesem forum con opencl gemacht noch ohne antwort.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833131</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833131</guid><dc:creator><![CDATA[Xadine_E]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:34:25 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:42:15 GMT]]></title><description><![CDATA[<p>hab jetzt gesehen das ich etwas vom tutorial nicht gemacht habe</p>
<pre><code class="language-cpp">define __NO_STD_VECTOR // Use cl::vector and cl::string and 
#define __NO_STD_STRING  // not STL versions, more on this later#include &lt;CL/cl.hpp&gt;
</code></pre>
<p>diese defines machen zunächst die eine fehlermeldung weg aber dafür habe ich jetzt 11 von diesen hier</p>
<pre><code class="language-cpp">...ects\opencl\opencl\cl\cl.hpp(1408) : error C3861: &quot;alloca&quot;: Bezeichner wurde nicht gefunden.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1833145</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833145</guid><dc:creator><![CDATA[Xadine_E]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Tue, 05 Jan 2010 17:46:41 GMT]]></title><description><![CDATA[<p>Irgendein include fehlt, schau in der Referenz, wo diese low-level-Funktion herkommt, evtl. &lt;alloca.h&gt;, aber keine Ahnung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833149</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Tue, 05 Jan 2010 17:46:41 GMT</pubDate></item><item><title><![CDATA[Reply to opencl on Wed, 06 Jan 2010 14:06:29 GMT]]></title><description><![CDATA[<p>Ich hatte das gleiche Problem. Hab in der cl.hpp malloc.h zu den includes hinzugefügt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1833670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1833670</guid><dc:creator><![CDATA[chevydevil]]></dc:creator><pubDate>Wed, 06 Jan 2010 14:06:29 GMT</pubDate></item></channel></rss>