<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dee Double Dub &#187; CUDA</title>
	<atom:link href="http://www.deedoubledub.com/tag/cuda/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deedoubledub.com</link>
	<description>random points of interest</description>
	<lastBuildDate>Fri, 17 Jul 2009 00:30:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CUDA 2.1 Setup on Ubuntu 8.04</title>
		<link>http://www.deedoubledub.com/2009/04/cuda-21-setup-on-ubuntu-804/</link>
		<comments>http://www.deedoubledub.com/2009/04/cuda-21-setup-on-ubuntu-804/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 01:37:30 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CUDA]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://deedoubledub.phpnet.us/?p=74</guid>
		<description><![CDATA[The Compute Unified Device Architecture is nVidia&#8217;s architecture and API for using graphics processors as powerful parallel supercomputers on the cheap.  Setting up the environment for developing with CUDA requires the installation of the CUDA driver, the CUDA toolkit, and the CUDA SDK.  The following is the process for setting up this environment in Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>The Compute Unified Device Architecture is nVidia&#8217;s architecture and API for using graphics processors as powerful parallel supercomputers on the cheap.  Setting up the environment for developing with CUDA requires the installation of the CUDA driver, the CUDA toolkit, and the CUDA SDK.  The following is the process for setting up this environment in Ubuntu 8.04.</p>
<p><span id="more-74"></span></p>
<ol>
<li>Install the necessary build tools</li>
<p>You may find that you need some additional development libraries depending on what is already installed on your system.<br />
<code>sudo apt-get install build-essential libglut3-dev libxi-dev libxmu-dev</code></p>
<li>Download the CUDA driver, Toolkit, and SDK from <a href="http://developer.nvidia.com">developer.nvidia.com</a></li>
<li>Install the CUDA driver</li>
<p>The nVidia driver cannot be installed while X is running, so you will need to stop gdm and install the driver in a virtual console by pressing ctrl+alt+F1.  If you have already installed the Ubuntu restricted driver for your nVidia graphics card like I did, you will probably run into some trouble installing the CUDA driver.  I solved my problems by following the nVidia driver manual installation guide <a href="https://help.ubuntu.com/community/NvidiaManual">here</a>.  The normal process if there are no conflicting drivers already installed are as follows.<br />
<code>chmod +x NVIDIA-Linux-x86-xxx-pkg1.run<br />
sudo /etc/init.d/gdm stop<br />
sudo ./NVIDIA-Linux-x86-xxx-pkg1.run<br />
sudo /etc/init.d/gdm start</code></p>
<li>Install the CUDA toolkit</li>
<p><code>chmod +x NVIDIA_CUDA_Toolkit_2.1_ubuntu8.04_x86.run<br />
sudo ./NVIDIA_CUDA_Toolkit_2.1_ubuntu8.06_x86.run</code></p>
<li>Modify Environment Variables</li>
<p>The simplest way to do this is to edit your ~/.bashrc file.  Changes take effect when you start a new terminal session.<br />
<code>PATH=$PATH:/usr/local/cuda/bin<br />
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib<br />
export PATH<br />
export LD_LIBRARY_PATH</code></p>
<li>Install the CUDA SDK</li>
<p><code>chmod +x ./NVIDIA_CUDA_SDK_xxx_linux.run<br />
./NVIDIA_CUDA_SDK_xxx_linux.run</code></p>
<li>Compile and Run the example programs</li>
<p><code>cd ~/NVIDIA_CUDA_SDK<br />
make</code></p>
<p>Now execute any of the example programs in ~/NVIDIA_CUDA_SDK/bin/linux/release/</ol>
<p>Check out <a href="http://lifeofaprogrammergeek.blogspot.com/2008/05/cuda-development-in-ubuntu.html">http://lifeofaprogrammergeek.blogspot.com/2008/05/cuda-development-in-ubuntu.html</a> for similar details and how to copy the template project and start coding your own CUDA program.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deedoubledub.com/2009/04/cuda-21-setup-on-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
