{"id":1595,"date":"2022-03-19T17:18:51","date_gmt":"2022-03-19T21:18:51","guid":{"rendered":"https:\/\/www.unliterate.net\/?p=1595"},"modified":"2022-03-19T17:54:59","modified_gmt":"2022-03-19T21:54:59","slug":"nvidia-cuda-with-the-wrong-video-card","status":"publish","type":"post","link":"https:\/\/www.unliterate.net\/index.php\/2022\/03\/19\/nvidia-cuda-with-the-wrong-video-card\/","title":{"rendered":"nVidia CUDA with the wrong video card"},"content":{"rendered":"\n<p>In trying to build my first crypto rig I wanted to be able to get it functional with the GPU instead of the CPU.<\/p>\n\n\n\n<p>I had originally installed an nVidia GeForce GT 710 but came to find out later that its not a supported GPU for use with CUDA per <a href=\"https:\/\/developer.nvidia.com\/cuda-gpus\" target=\"_blank\" rel=\"noreferrer noopener\">developer.nvidia.com<\/a>.<\/p>\n\n\n\n<p>Lucky for me I had a video card to &#8220;Upgrade&#8221; to, which was an nVidia GeForce GT 630, which supports Version 2.1 of CUDA-Enabled Compute Capability.<\/p>\n\n\n\n<p>I did have to download and install the <a rel=\"noreferrer noopener\" href=\"https:\/\/www.nvidia.com\/Download\/driverResults.aspx\/186016\/en-us\" target=\"_blank\">nVidia Linux X64 driver<\/a>, and without knowing that the install required kernel-devel so it could built the driver correctly.<\/p>\n\n\n\n<p>The only thing blocking me is it seemed my build of libxmrig-cuda.so was built with the CUDA 11.6 API and the Linux X64 driver does not support that. In fact, running nvidia-smi tells me that the driver supports CUDA version 11.4, so looks like i&#8217;ll have to rebuilt my driver with 11.4.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Add\/Remove CUDA 11.6 -&gt; 11.4<\/h2>\n\n\n\n<p>Now I have to undo what I&#8217;ve done and redo what I need to do.<\/p>\n\n\n\n<p>First I need to &#8220;properly name&#8221; my build folder in xmrig-cuda. If I ever get a newer driver I won&#8217;t have to rebuild this driver.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mv build build-11.6<\/code><\/pre>\n\n\n\n<p>Now I have to remove the CUDA sdk:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf remove cuda\nsudo dnf clean all<\/code><\/pre>\n\n\n\n<p>I had to navigate to an older CUDA download, <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.nvidia.com\/cuda-11-4-0-download-archive\" target=\"_blank\">specifically for 11.4<\/a>. The install instructions are pretty much the same, just with a different RPM:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/developer.download.nvidia.com\/compute\/cuda\/11.4.0\/local_installers\/cuda-repo-rhel8-11-4-local-11.4.0_470.42.01-1.x86_64.rpm\nsudo rpm -i cuda-repo-rhel8-11-4-local-11.4.0_470.42.01-1.x86_64.rpm\nsudo dnf clean all\nsudo dnf -y install cuda-11.4.0-1<\/code><\/pre>\n\n\n\n<p>I was able to verify that the new cuda library was installed from symlinks created in \/usr\/local\/cuda to point to \/usr\/local\/cuda-11.4<\/p>\n\n\n\n<p>I next had to reinstall the nVidia 470.*-series Linux Driver so that <em>nvidia-smi<\/em> could talk with it.<\/p>\n\n\n\n<p>Finally I rebuilt and re-symlinked xmrig-cuda with the 11.4 CUDA library.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In trying to build my first crypto rig I wanted to be able to get it functional with the GPU instead of the CPU. I had originally installed an nVidia GeForce GT 710 but came to find out later that its not a supported GPU for use with CUDA per developer.nvidia.com. Lucky for me I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,17],"tags":[],"class_list":["post-1595","post","type-post","status-publish","format-standard","hentry","category-geek-instructions","category-linux"],"_links":{"self":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/comments?post=1595"}],"version-history":[{"count":4,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1595\/revisions"}],"predecessor-version":[{"id":1601,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/posts\/1595\/revisions\/1601"}],"wp:attachment":[{"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/media?parent=1595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/categories?post=1595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unliterate.net\/index.php\/wp-json\/wp\/v2\/tags?post=1595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}