Tuesday, November 4, 2008

Installing CUDA 2.0 on Ubunut 8.10

While CUDA 2.0 isn't officially supported on 8.10, I was able to get it installed and working. For one, you won't have to install nvidia driver by hand, since 177 is support right out of the box with CUDA. Most of the problem stemmed from using GCC 4.3.2. The process is simple for most part:

1. Install nvidia binary driver version 177
2. Install CUDA binaries
3. Install CUDA SDK binaries

Here comes the tricky part appending source files in NVIDIA_CUDA_SDK:

append #include to common/src/paramgl.cpp and common/inc/cutil.h
append #include to projects/cppIntegration/main.cpp and common/inc/exception.h
append #include to common/src/cmd_arg_reader.cpp

next remove the -O3 flag or just replace it with -O from COMMONFLGS in /common/common.mk

and most of the stuff should compile with the exception of a few apps if you are using AMD64 build, Those will give you errors like "gnu/stubs-32.h: No such file or directiory". You can install libc6-i386-dev and they will compile and run just fine after that.

No comments: