{"id":6166,"date":"2014-04-13T04:36:20","date_gmt":"2014-04-13T04:36:20","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/viennacl-installation-error-collection-of-common-programming-errors\/"},"modified":"2014-04-13T04:36:20","modified_gmt":"2014-04-13T04:36:20","slug":"viennacl-installation-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/viennacl-installation-error-collection-of-common-programming-errors\/","title":{"rendered":"ViennaCL installation error-Collection of common programming errors"},"content":{"rendered":"<p>I am attempting to install ViennaCL-1.2.1 in scientific linux for future GPU computing. When I attempt to call make, i get a variety of errors, with most along the lines &#8220;undefined reference to &#8216;clXXXXX&#8217;. I am assuming this is due to it not properly finding my OpenCL library. What I don&#8217;t know is if I have the sufficient libraries. In \/usr\/lib I have libOpenCL.so, and I have installed the most up-to-date NVIDIA driver for my graphics card. The driver supports OpenCL, but do I need more downloads from the NVIDIA site to use the ViennaCL library?<\/p>\n<p>EDIT: I solved the above make issue (I believe) by simply rerunning cmake. I think that I hadn&#8217;t properly installed the libraries when I first ran cmake and it made silent errors when creating the make files. However this has simply changed the nature of the problem.<\/p>\n<p>Now, whenever I run any of the tutorials or benchmarks included with ViennaCL, I get a fatal error, where &#8216;ViennaCL encountered an unknown OpenCL Error&#8217;. It says this could be due to several compilation errors, but does not go into any further detail. The only one that does not throw an error is &#8216;bandwidth-reduction&#8217; which from the manual is found to be the only one that does not require OpenCL.<\/p>\n<p>For reference, here is my installation process for ViennaCL and the GPU drivers:<\/p>\n<pre><code>- sftp ViennaCL-1.2.1 to ~\/Documents\/packageInstall\n- cd \/usr\/include\n- sudo mkdir viennacl\n- sudo cp -r ~\/Documents\/packageInstall\/ViennaCL-1.2.1\/viennacl\/* \/usr\/include\/viennacl\n- sudo mkdir CL\n- sudo cp -r ~\/Documents\/packageInstall\/ViennaCL-1.2.1\/CL\/* \/usr\/include\/CL\n- sftp gpucomputingsdk_4.2.9_linux.run to ~\/Documents\/packageInstall\n- sftp cudatoolkit_4.2.9_linux_64_rhel6.0.run to ~\/Documents\/packageInstall\n- cd ~\/Documents\/packageInstall\n- sudo sh .\/cudatoolkit_4.2.9_linux_64_rhel6.0.run\n- sudo sh .\/gpucomputingsdk_4.2.9_linux.run\n- cd ViennaCL-1.2.1\/build\n- cmake ..\n- sudo make\n- .\/examples\/tutorial\/blas1 (or any other example)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am attempting to install ViennaCL-1.2.1 in scientific linux for future GPU computing. When I attempt to call make, i get a variety of errors, with most along the lines &#8220;undefined reference to &#8216;clXXXXX&#8217;. I am assuming this is due to it not properly finding my OpenCL library. What I don&#8217;t know is if I [&hellip;]<\/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-6166","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6166","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=6166"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6166\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}