{"id":761,"date":"2014-02-05T07:21:54","date_gmt":"2014-02-05T13:21:54","guid":{"rendered":"http:\/\/www.jedge.com\/wordpress\/?p=761"},"modified":"2014-02-05T07:26:00","modified_gmt":"2014-02-05T13:26:00","slug":"install-or-update-cuda-to-the-latest-version-5-5","status":"publish","type":"post","link":"https:\/\/www.jedge.com\/wordpress\/2014\/02\/install-or-update-cuda-to-the-latest-version-5-5\/","title":{"rendered":"Install or Update CUDA to the latest version (5.5)"},"content":{"rendered":"<p>We are going to install \/ update CUDA to the latest version (5.5).  For this tutorial we will be running Ubuntu 13.10 and install the latest Nvidia driver from a repository.  We will not have the CUDA installation install the drivers.<\/p>\n<p><!--more--><\/p>\n<p><pre><code>edge@xVidia:~$ \/usr\/local\/cuda\/open64\/bin\/nvopencc -v\nNVIDIA (R) CUDA Open64 Compiler\nCuda compilation tools, release 4.2, V0.2.1221\nBuilt on 2012-04-05\nOpen64 Compiler Suite: Version 4.1\nBuilt on: 2012-04-05\nThread model: posix\nGNU gcc version 3.4.5 (Open64 4.2 driver)\n\nsudo add-apt-repository ppa:xorg-edgers\/ppa \nsudo apt-get update\nsudo apt-get install nvidia-331<\/code><\/pre><\/p>\n<p>Visit https:\/\/developer.nvidia.com\/cuda-downloads and download the current version of CUDA for your platform.<\/p>\n<p><pre><code>$ cd ~\/source\n~\/source$ wget http:\/\/developer.download.nvidia.com\/compute\/cuda\/5_5\/rel\/installers\/cuda_5.5.22_linux_64.run\n~\/source$ chmod +x cuda_5.5.22_linux_64.run\n~\/source$ sudo .\/cuda_5.5.22_linux_64.run\n\nDo you accept the previously read EULA? (accept\/decline\/quit): accept\nYou are attempting to install on an unsupported configuration. Do you wish to continue? ((y)es\/(n)o) [ default is no ]: yes\nInstall NVIDIA Accelerated Graphics Driver for Linux-x86_64 319.37? ((y)es\/(n)o\/(q)uit): no\nInstall the CUDA 5.5 Toolkit? ((y)es\/(n)o\/(q)uit): yes\nEnter Toolkit Location [ default is \/usr\/local\/cuda-5.5 ]:\nInstall the CUDA 5.5 Samples? ((y)es\/(n)o\/(q)uit): no\n\n Unsupported compiler: 4.7.3\n\n===========\n= Summary =\n===========\n\nDriver:&nbsp;&nbsp; Not Selected\nToolkit:&nbsp;&nbsp;Installation Failed. Using unsupported Compiler.\nSamples:&nbsp;&nbsp;Not Selected\n\nLogfile is \/tmp\/cuda_install_28597.log<\/code><\/pre><\/p>\n<p>This error message is not an issue.  Just use the override option to ignore checking the compiler version as shown below.<\/p>\n<p><pre><code>~\/source$ sudo .\/cuda_5.5.22_linux_64.run --override\nDo you accept the previously read EULA? (accept\/decline\/quit): accept\nYou are attempting to install on an unsupported configuration. Do you wish to continue? ((y)es\/(n)o) [ default is no ]: yes\nInstall NVIDIA Accelerated Graphics Driver for Linux-x86_64 319.37? ((y)es\/(n)o\/(q)uit): no\nInstall the CUDA 5.5 Toolkit? ((y)es\/(n)o\/(q)uit): yes\nEnter Toolkit Location [ default is \/usr\/local\/cuda-5.5 ]:\nInstall the CUDA 5.5 Samples? ((y)es\/(n)o\/(q)uit): no\n===========\n= Summary =\n===========\n\nDriver:&nbsp;&nbsp; Not Selected\nToolkit:&nbsp;&nbsp;Installed in \/usr\/local\/cuda-5.5\nSamples:&nbsp;&nbsp;Not Selected\n\n* Please make sure your PATH includes \/usr\/local\/cuda-5.5\/bin\n\n* Please make sure your LD_LIBRARY_PATH\n*&nbsp;&nbsp; for 32-bit Linux distributions includes \/usr\/local\/cuda-5.5\/lib\n*&nbsp;&nbsp; for 64-bit Linux distributions includes \/usr\/local\/cuda-5.5\/lib64:\/lib\n* OR\n*&nbsp;&nbsp; for 32-bit Linux distributions add \/usr\/local\/cuda-5.5\/lib\n*&nbsp;&nbsp; for 64-bit Linux distributions add \/usr\/local\/cuda-5.5\/lib64 and \/lib\n* to \/etc\/ld.so.conf and run ldconfig as root\n\n* To uninstall CUDA, remove the CUDA files in \/usr\/local\/cuda-5.5\n* Installation Complete\n\nPlease see CUDA_Getting_Started_Linux.pdf in \/usr\/local\/cuda-5.5\/doc\/pdf for detailed information on setting up CUDA.\n\n***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 319.00 is required for CUDA 5.5 functionality to work.\nTo install the driver using this installer, run the following command, replacing &lt;CudaInstaller&gt; with the name of this run file:\n&nbsp;&nbsp;&nbsp;&nbsp;sudo &lt;CudaInstaller&gt;.run -silent -driver\n\nLogfile is \/tmp\/cuda_install_28685.log<\/code><\/pre><\/p>\n<p>Add or modify the cuda.conf file in the ld.so.conf.d directory to reflect the path to the new installation.<\/p>\n<p><pre><code>$ sudo vim \/etc\/ld.so.conf.d\/cuda.conf\n\n&nbsp;&nbsp;\/usr\/local\/cuda-5.5\/lib64\n&nbsp;&nbsp;\/usr\/local\/cuda-5.5\/lib\n\nroot@xVidia:~# \/usr\/local\/cuda-5.5\/open64\/bin\/nvopencc -v\nNVIDIA (R) CUDA Open64 Compiler\nCuda compilation tools, release 5.5, V5.5.0\nBuilt on 2013-07-17\nOpen64 Compiler Suite: Version 4.1\nBuilt on: 2013-07-17\nThread model: posix\nGNU gcc version 3.4.5 (Open64 4.2 driver)<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are going to install \/ update CUDA to the latest version (5.5). For this tutorial we will be running Ubuntu 13.10 and install the latest Nvidia driver from a repository. We will not have the CUDA installation install the drivers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[113,5],"tags":[153,154,59],"class_list":["post-761","post","type-post","status-publish","format-standard","hentry","category-compiling","category-installing-using-tools","tag-cuda","tag-nvidia","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts\/761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/comments?post=761"}],"version-history":[{"count":3,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts\/761\/revisions"}],"predecessor-version":[{"id":764,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/posts\/761\/revisions\/764"}],"wp:attachment":[{"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/media?parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/categories?post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jedge.com\/wordpress\/wp-json\/wp\/v2\/tags?post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}