Ok got it working. Thanks to Zermelo for the nudge in the right direction. As follows is a mini how-to from start to finish of how I got cuda running feel free to move it to How-Tos if its better there.
So given a fresh BT4 Pre-Final first lets gather some things we need.
First is the nvidia cuda driver and toolkit.
Both can be found here hxxp://xxx.nvidia.com/object/cuda_get.html just choose linux 32 bit and ubuntu 8.10 then download the driver and the toolkit.
In my case I downloaded to root so log out of X and type
Code:
sh cudadriver_2.2_linux_32_185.18.08-beta.run
Follow the prompts the important ones are to overwrite existing drivers, not to download from ftp, and to compile, and finally to let it auto write your xorg.
Once thats done lets install the cudatoolkit you normally don't need this but to get pyrit working I had to compile from source so this IS needed.
Code:
sh cudatoolkit_2.2_linux_32_ubuntu8.10.run
Just follow prompt and accept default paths pretty straight forward here.
Then you need to add the new cuda files into your path environmental or you can check to see if they are there magically by
If not lets do
Code:
PATH=$PATH:/usr/local/cuda/bin
Then the toolkit install recommends that you update your LD_Library_Path by
Code:
nano /etc/ld.so.conf
paste /usr/local/cuda/lib into the file and overwrite then do
ldconfig
Ok now that we have the prerequisites out of the way lets get on to the pyrit side of things.
Grab pyrit and cpyrit from the website or feel free to use SVN etc to get the latest builds.
Code:
wget hxxp://pyrit.googlecode.com/svn/tags/0.2.2/Pyrit-0.2.2.tar.gz
wget hxxp://pyrit.googlecode.com/svn/tags/0.2.2/CPyrit-CUDA-0.2.2.tar.gz
Navigate to your download directory and extract your downloads.
Code:
tar -zxvf Pyrit*
tar -zxvf CPyrit*
cd ./Pyrit*
python setup.py make
python setup.py install
cd ..
cd ./CPyrit*
python setup.py make
python setup.py install
Assuming you have no errors that should do it. Lets check it out.
Code:
root@anubis:~/CPyrit-CUDA-0.2.2# pyrit list_cores
Pyrit 0.2.2 (C) 2008, 2009 Lukas Lueg hxxp://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3
The ESSID-blobspace seems to be empty; you should create an ESSID...
The following cores seem available...
#0: 'CPU-Core (x86)'
#1: 'CUDA-Device #1 'GeForce GT 120M''
root@anubis:~/CPyrit-CUDA-0.2.2# pyrit benchmark
Pyrit 0.2.2 (C) 2008, 2009 Lukas Lueg hxxp://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3
The ESSID-blobspace seems to be empty; you should create an ESSID...
Running benchmark for at least 60 seconds...
CUDA-Device #1 'GeForce GT 120M': 1490.69 PMKs/s, 93.03% occupancy
CPU-Core (x86): 199.47 PMKs/s, 99.32% occupancy
Benchmark done. 1690.16 PMKs/s total.
Quite a bit better than my original 299 PMKs/s with just the p8600 dual core. Hope this helps anyone with similar issues. If anyone sees anything I goofed up let me know and I will edit this.