Hustle Play

Syd's blog.

Installing GPUSURF64 on Ubuntu 9.04-x86_64

Here is how to install GPUSURF64 onto Ubuntu 9.04-x86_64.

  1. Download GPUSURF64
  2. Note the versions of each prerequisite package. You’ll need to download and install as the same versions of each package (or as close as you can get in the case of ImageMagick).
  3. Unpack GPUSURF64
  4. Open settings.mk. You’ll need to edit the locations of installed packages in this file as you install prerequisites.
  5. Use apt-get to install the following packages
    • build-essential
    • libglut3-dev
    • libXi-dev
    • libxmu-dev
    • envyng-core
    • libperl-dev
    • nvidia-settings
  6. Follow the link from the GPUSURF64 Download page to ‘CUDA driver, Toolkit, and SDK’
  7. Navigate the site to find CUDA Toolkit 2.2
  8. Download ‘Developer Drivers for Linux (185.18.14), 64-bit. Save it somewhere you remember, like the Desktop.
  9. Run sudo envyng -t. Uninstall NVIDIA Driver. Restart Computer.
  10. After restarting, log in graphically. Then do a Ctrl+Alt+F1
  11. Log in
  12. Kill the Display Manager. sudo /etc/init.d/gdm stop
  13. Install NVIDIA Development Driver. sudo sh .run. Install 32-bit libs, config X-server, backup old X config. Persevere through a multitude of error and warning messages.
  14. Resolve a Driver Conflict. Add DISABLED_MODULES="nv" to /etc/default/linux-restricted-modules-common.
  15. Reboot. sudo reboot.
  16. Install CUDA Toolkit (2.2), 64-bit. Use root to run the script.
  17. Set up PATH and LD_LIBRARY_PATH as instructed at end of script.
  18. Install CUDA SDK (2.2), 64-bit. Use normal user to run the script.
  19. (Optional). Build CUDA Demos.
    • cd ~/NVIDIA_CUDA_SDK
    • make
    • ~/NVIDIA_CUDA_SDK/bin/linux/release/particles
    • ~/NVIDIA_CUDA_SDK/bin/linux/release/nbody
  20. Turn OFF Compiz in Ubuntu. System -> Preferences -> Appearance -> Visual Effects -> None.
  21. Turn ON “Sync to VBlank”. System -> Administration -> NVIDIA X Server Settings -> X Screen 0 -> OpenGL Settings -> check “Sync to VBlank”.
  22. Download, Build, & Install GLEW (1.5.0).
  23. Download, Build, & Install ImageMagick (as close to 6.4.5 as you can find. Look in the ‘legacy’ directory on the mirror sites.)
  24. Download & Install Cg Toolkit (2.2), 64-bit. cp -r usr /.
  25. Update the settings.mk file from the beginning of this process.
  26. Build GPUSURF64.
    • cd gpusurf
    • make

References:

  • http://lifeofaprogrammergeek.blogspot.com/2008/05/cuda-development-in-ubuntu.html
  • http://forums.nvidia.com/index.php?showtopic=163975
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.