Skip to content

Ubuntu setup instructions

Chang Liu edited this page Jan 2, 2018 · 4 revisions

Instructions to setup CUDA/pyCUDA environment and run the benchmark case on Ubuntu 17.04.

Step 1: Install CUDA

curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/cuda-repo-ubuntu1704_9.1.85-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1704/x86_64/7fa2af80.pub
sudo dpkg -i cuda-repo-ubuntu1704_9.1.85-1_amd64.deb
sudo apt-get update
sudo apt-get install aptitude
sudo aptitude install cuda

Step 2: Install Anaconda3

curl -O https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh
sh ./Anaconda3-5.0.1-Linux-x86_64.sh

Step 3: Add the following lines to the file ~/.bashrc:

export CUDA_HOME=/usr/local/cuda
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$CUDA_HOME/lib"
export PATH="$CUDA_HOME/bin:$PATH"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"

Step 4: Open a new terminal window. Install python packages using conda and pip:

conda install basemap netcdf4 
pip install filterpy pycuda

Step 5: Clone the pf_geolocation source code:

git clone https://github.com/cliu3/pf_geolocation.git

Step 6: Run the benchmark test:

cd pf_geolocation/benchmark
sh run_gpu.sh
Clone this wiki locally