{"id":6134,"date":"2014-04-13T04:33:41","date_gmt":"2014-04-13T04:33:41","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/opencl-1-2-c-wrapper-undefined-reference-to-clreleasedevice-collection-of-common-programming-errors\/"},"modified":"2014-04-13T04:33:41","modified_gmt":"2014-04-13T04:33:41","slug":"opencl-1-2-c-wrapper-undefined-reference-to-clreleasedevice-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/opencl-1-2-c-wrapper-undefined-reference-to-clreleasedevice-collection-of-common-programming-errors\/","title":{"rendered":"OpenCL 1.2 C++ Wrapper &#8211; undefined reference to clReleaseDevice-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to use the OpenCL C++ wrapper API for the following program :<\/p>\n<pre><code>#define __CL_ENABLE_EXCEPTIONS\n\n\n#include \n#include \n#include \n#include \n\n const char helloStr []  = \"__kernel void \"\n                          \"hello(void) \"\n                          \"{ \"\n                          \"  \"\n                          \"} \";\n\n int\n main(void)\n {\n    cl_int err = CL_SUCCESS;\n    try {\n\n      std::vector platforms;\n      cl::Platform::get(&amp;platforms);\n      if (platforms.size() == 0) {\n          std::cout<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am trying to use the OpenCL C++ wrapper API for the following program : #define __CL_ENABLE_EXCEPTIONS #include #include #include #include const char helloStr [] = &#8220;__kernel void &#8221; &#8220;hello(void) &#8221; &#8220;{ &#8221; &#8221; &#8221; &#8220;} &#8220;; int main(void) { cl_int err = CL_SUCCESS; try { std::vector platforms; cl::Platform::get(&amp;platforms); if (platforms.size() == 0) { std::cout<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6134","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6134"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6134\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}