AES on GPU using CUDA Choi dae soon
1. Install Enviroment Install dependencies Ubuntu 11.04 CUDA 4.0 Install dependencies Sudo apt-get install build-essential gcc-4.4 g++-4.4 libxi-dev libxmu-dev freeglut3-dev Download toolkit, sdk, drivers Developer Drivers for Linux (270.41.19) CUDA Toolkit for Ubuntu Linux 10.10 CUDA Tools SDK GPU Computing SDK code samples
1. Install Driver installation Remove the current nvidia packages you might have installed Sudo apt-get remove nvidia-common nvidia-current Go to the text window Stop x ( sudo service gdm stop ) Remove the nouveau module Sudo apt-get –purge remove xserver-xorg-video-nouveau Restart x Sudo service gdm start Stop x Install driver Sudo sh file_name
1. Install Install toolkit, sdk, code samples Environmental variables Sudo sh file_name Environmental variables Add the following in the .bashrc file of your home folder export CUDA_HOME="/usr/local/cuda” export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CUDA_HOME}/lib" export PATH=${CUDA_HOME}/bin:${PATH} Run ldconfig as root for it to take effect source ~/.bashrc sudo ldconfig make nvcc use gcc/g++ version 4.4, for example, in home directory mkdir gcc44 cd gcc44 ln –s /usr/bin/cpp-4.4 cpp ln –s /usr/bin/gcc-4.4 gcc ln –s /usr/bin/g++4.4 g++
1. Install Edit /usr/local/cuda/bin/nvcc.profile Compiler-bindir=/home/xxx/gcc44 Run make in NVIDIA_GPU_Computing_SDK/C cd ~/NVIDIA_GPU_Computing_SDK/C make Run sample code
2. Aes code implemetation File Edit makefile
2. Aes code implemetation Hardware enviroment
2. Aes code implemetation Run aes