Editing
Software Development Platforms
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Installing the CUDA SDK==== Again from the nVidia website, download the CUDA SDK package. Install it. chmod +x gpucomputingsdk_x.x.xx_linux.run ./gpucomputingsdk_x.x.xx_linux.run Notice that we don't need <tt>sudo</tt> this time, because root privileges are not required: the SDK will live in your own home directory somewhere. To compile the examples, just <tt>cd</tt> to the SDK directory and run <tt>make</tt>. My favorite example program is <tt>fluidsGL</tt>. One complication however is that some SDK programs can only be built with gcc 4.4 and earlier, and the NVIDIA SDK doesn't respect the environment variables CC and CXX. So, we're going to set up the Debian alternatives system to be able to switch at will, like this: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4 To switch, run this command and make your choice: sudo update-alternatives --config gcc In addition, to build all the programs you will need these libraries: sudo apt-get install libxmu-dev libxi-dev The linker fails to find libcuda as installed by Ubunutu, which can be fixed by running it like this: make LINKFLAGS=-L/usr/lib/nvidia-current For trouble-shooting, run make with make verbose=1
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information