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.
Ubuntu 8.10 on VGN-FZ18G

Almost everything works out of the box, including my Huawei E270 3G modem. The modem was detected as a broadband modem, the configuration screen that pops up offered various 3G/3.5G service providers arranged in countries. The only hardware that didn't work is probably my analogue modem built into the laptop, but I don't think I will use it much if any at all. As for the built in camera, it will need to be compiled from source.

Update: driver for webcam R5u870 is borked for kernel > 2.6.26. Website http://wiki.mediati.org. As for userland driver http://www.bitbucket.org/ahixon/ru587x , it is still not usable