{"id":468,"date":"2008-12-18T11:57:46","date_gmt":"2008-12-18T10:57:46","guid":{"rendered":"http:\/\/www.walkingrandomly.com\/?p=468"},"modified":"2008-12-18T11:57:46","modified_gmt":"2008-12-18T10:57:46","slug":"installing-nvidia-cuda-on-ubuntu-810","status":"publish","type":"post","link":"https:\/\/walkingrandomly.com\/?p=468","title":{"rendered":"Installing NVIDIA CUDA on Ubuntu 8.10"},"content":{"rendered":"<p>After realising that my shiny new Dell XPS M1330 could make use of<a href=\"http:\/\/www.nvidia.com\/object\/cuda_home.html\"> CUDA<\/a> I had a bash at installing it on Intrepid.\u00a0 The notes at the following link were very useful but I did not follow them to the letter.\u00a0 I can&#8217;t remember what changes I made but it was all minor stuff.<\/p>\n<p><a href=\"http:\/\/lifeofaprogrammergeek.blogspot.com\/2008\/05\/cuda-development-in-ubuntu.html\">lifeofaprogrammergeek.blogspot.com\/2008\/05\/cuda-development-in-ubuntu.html<\/a><\/p>\n<p>When I tried to compile the examples that are included in the SDK I got many many errors &#8211; some of which included<br \/>\n<code><br \/>\nIn file included from src\/cmd_arg_reader.cpp:33:<br \/>\n.\/..\/common\/inc\/cmd_arg_reader.h: In member function \u2018const T* CmdArgReader::getArgHelper(const std::string&amp;)\u2019:<br \/>\n.\/..\/common\/inc\/cmd_arg_reader.h:416: error: must #include  before using typeid<br \/>\n.\/..\/common\/inc\/cmd_arg_reader.h:432: error: must #include  before using typeid<br \/>\nsrc\/cmd_arg_reader.cpp: In destructor \u2018CmdArgReader::~CmdArgReader()\u2019:<br \/>\nsrc\/cmd_arg_reader.cpp:101: error: must #include  before using typeid<br \/>\n<\/code><\/p>\n<p>A bit of googling helped me determine that these errors were caused by the fact that 8.10 of Ubuntu uses a version of gcc that is currently unsupported by CUDA.  The following commands fixed that by changing the default compiler to gcc-4.1<br \/>\n<code><br \/>\nsudo apt-get install build-essential libglut3-dev gcc-4.1 g++-4.1<br \/>\nsudo update-alternatives --install \/usr\/bin\/gcc gcc \/usr\/bin\/gcc-4.1 60 --slave \/usr\/bin\/g++ g++ \/usr\/bin\/g++-4.1<br \/>\n<\/code><\/p>\n<p>Some other things I did may have helped but it was the two lines above that fixed the problem for me<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After realising that my shiny new Dell XPS M1330 could make use of CUDA I had a bash at installing it on Intrepid.\u00a0 The notes at the following link were very useful but I did not follow them to the letter.\u00a0 I can&#8217;t remember what changes I made but it was all minor stuff. lifeofaprogrammergeek.blogspot.com\/2008\/05\/cuda-development-in-ubuntu.html [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3swhs-7y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=468"}],"version-history":[{"count":5,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":473,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=\/wp\/v2\/posts\/468\/revisions\/473"}],"wp:attachment":[{"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/walkingrandomly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}