<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Install PetaVision Ubuntu</title><link>https://sourceforge.net/p/petavision/wiki/Install%2520PetaVision%2520Ubuntu/</link><description>Recent changes to Install PetaVision Ubuntu</description><atom:link href="https://sourceforge.net/p/petavision/wiki/Install%20PetaVision%20Ubuntu/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 30 Apr 2015 20:59:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/petavision/wiki/Install%20PetaVision%20Ubuntu/feed" rel="self" type="application/rss+xml"/><item><title>Install PetaVision Ubuntu modified by Brian Broom-Peltz</title><link>https://sourceforge.net/p/petavision/wiki/Install%2520PetaVision%2520Ubuntu/</link><description>&lt;div class="markdown_content"&gt;&lt;div&gt;
&lt;div class="markdown_content"&gt;&lt;h1 id="ubuntu-installation"&gt;Ubuntu Installation&lt;/h1&gt;
&lt;p&gt;This is a tutorial on getting PetaVision and running on Ubuntu-14.04 with GPU support, assuming you have a clean installation of Ubuntu.&lt;/p&gt;
&lt;h2 id="requirements"&gt;Requirements&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;An NVIDIA card with compute capabilities 3.0 or above. Check at &lt;a href="https://developer.nvidia.com/cuda-gpus" rel="nofollow"&gt;https://developer.nvidia.com/cuda-gpus&lt;/a&gt; to see if your video card is supported&lt;/li&gt;
&lt;li&gt;Ubuntu 14.04&lt;/li&gt;
&lt;li&gt;sudo access&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="initialization"&gt;Initialization&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;sudo apt-get update
sudo apt-get upgrade
sudo apt-get install cmake cmake-curses-gui gcc g++ gdb subversion
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="openmpi"&gt;OpenMPI&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;sudo apt-get install libopenmpi-dev openmpi-bin
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="gdal"&gt;GDAL&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;sudo apt-get install libgdal-dev gdal-bin
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="cuda-and-nvidia-driver"&gt;CUDA and NVIDIA Driver&lt;/h2&gt;
&lt;p&gt;Go to &lt;a href="http://www.nvidia.com/Download/index.aspx?lang=en-us" rel="nofollow"&gt;http://www.nvidia.com/Download/index.aspx?lang=en-us&lt;/a&gt; and find your video card. Download the linux RUN file. Note the location.&lt;br /&gt;
Go to &lt;a href="https://developer.nvidia.com/cuda-downloads" rel="nofollow"&gt;https://developer.nvidia.com/cuda-downloads&lt;/a&gt;.&lt;br /&gt;
Click the RUN file for your archetecture. Make sure if you have a 64 bit version of ubuntu that you download the 64 bit version cuda. Note the location.&lt;/p&gt;
&lt;p&gt;NVIDIA drivers may not be installed unless X is not running. Here's how to install the drivers.&lt;/p&gt;
&lt;p&gt;Reboot Ubuntu. At the GRUB menu, select Acvanced options for Ubuntu.&lt;br /&gt;
Boot Ubuntu into recovery mode.&lt;br /&gt;
Select root to get into root command line.&lt;br /&gt;
    mount -o remount,rw #This remounts your drive into read/write mode&lt;br /&gt;
    cd path/to/cuda.run &lt;br /&gt;
    chmod u+x path/to/cuda/driver.run&lt;br /&gt;
    ./path/to/cuda/driver.ruh&lt;/p&gt;
&lt;p&gt;Follow the onscreen instructions.&lt;br /&gt;
When it asks if you want to install NVIDIA driver, select yes. This version is outdated, but cuda needs this driver to work.&lt;br /&gt;
Make sure to install CUDA 6.5 toolkit into the default location. Add a symbolic link to &lt;code&gt;/usr/local/cuda&lt;/code&gt; when asked.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;cd path/to/driver.run
chmod u+x path/to/driver.run
./path/to/driver.run
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Follow the instructions on the screen.&lt;br /&gt;
When asked to uninstall the driver installed by cuda, select yes.&lt;br /&gt;
When asked to update your Xorg, select yes. This will use this driver as your GUI display.&lt;br /&gt;
Run &lt;code&gt;nvidia-smi&lt;/code&gt; and make sure you see your video card.&lt;br /&gt;
Reboot.&lt;/p&gt;
&lt;h2 id="cudnn"&gt;CUDNN&lt;/h2&gt;
&lt;p&gt;Go to &lt;a href="https://developer.nvidia.com/cuDNN" rel="nofollow"&gt;https://developer.nvidia.com/cuDNN&lt;/a&gt; and click Download at the bottom.&lt;br /&gt;
Register with NVIDIA developers if need be, and wait for confirmation.&lt;br /&gt;
Download the Linux version of CUDNN&lt;br /&gt;
(Optional: if you have access to NMC's compuneuro, grab it from here: &lt;code&gt;/nh/compneuro/Data/cuDNN&lt;/code&gt;)&lt;/p&gt;
&lt;h2 id="finalization"&gt;Finalization&lt;/h2&gt;
&lt;p&gt;Do one final update/upgrade for everything&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
    sudo apt-get upgrade&lt;/p&gt;
&lt;h2 id="checking-out-and-installing-petavision"&gt;Checking Out and Installing PetaVision&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;cd &lt;span class="cp"&gt;${&lt;/span&gt;&lt;span class="n"&gt;HOME&lt;/span&gt;&lt;span class="cp"&gt;}&lt;/span&gt;
mkdir workspace
cd workspace
svn co https://&lt;span class="nt"&gt;&amp;lt;useranme&amp;gt;&lt;/span&gt;@svn.code.sf.net/p/petavision/code/trunk PetaVision
svn co https://&lt;span class="nt"&gt;&amp;lt;username&amp;gt;&lt;/span&gt;@svn.code.sf.net/p/petavision/code/PVSystemTests PVSystemTests
#You can download your sandbox here
cp PetaVision/docs/cmake/CMakeLists.txt .
#Here, you would add your sandbox to the end of CMakeLists
ccmake .
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;CMake options:&lt;br /&gt;
    CMAKE_BUILD_TYPE = Release #Optimiztaion for CPU&lt;br /&gt;
    CUDA_GPU = True #Depending on if you want to use GPUS&lt;br /&gt;
    CUDA_RELEASE = True #Optimization for Cuda&lt;br /&gt;
    CUDNN = True #If you're using CUDNN&lt;br /&gt;
    CUDNN_PATH = /path/to/cudnn/folder #The path to the cuDNN folder you downloaded/copied&lt;br /&gt;
    OPEN_MP_THREADS = True #If we use threads or not&lt;/p&gt;
&lt;p&gt;If some of these options do not show up on ccmake, fill the ones you can, press c to configure, and look again for variables&lt;br /&gt;
Press G to generate when avaliable.&lt;/p&gt;
&lt;p&gt;To Test:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;cd ~/workspace/PVSystemTest/GPUSystemTest
make -j 8
Release/GPUSystemTest -p input/postTest.params -t
&lt;/pre&gt;&lt;/div&gt;
&lt;h2 id="optional-python"&gt;Optional: Python&lt;/h2&gt;
&lt;p&gt;Ubuntu comes with python 2.7. We suggest installing anaconda python for analysis tools.&lt;br /&gt;
- Go to &lt;a href="https://store.continuum.io/cshop/anaconda" rel="nofollow"&gt;https://store.continuum.io/cshop/anaconda/&lt;/a&gt;&lt;br /&gt;
- Enter your email&lt;br /&gt;
- Click I WANT PYTHON 3.4&lt;br /&gt;
- Click the linux penguin&lt;br /&gt;
- Click the download link and save it&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;chmod u+x path/to/python.sh
./path/to/python.sh
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Follow the directions. Make sure to specify yes when it asks you if you want anaconda in your path.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;source ~/.bashrc
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;To ensure it's working, type python and make sure the text splash says &lt;code&gt;Python 3.4.1 |Anaconda 2.1&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="optional-octave"&gt;Optional: Octave&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;sudo apt-get install octave liboctave-dev
octave
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;In octave:&lt;br /&gt;
    pkg install -forge general&lt;br /&gt;
    pkg install -forge control&lt;br /&gt;
    pkg install -forge signal&lt;br /&gt;
    pkg install -forge image&lt;br /&gt;
    pkg install -forge parallel&lt;br /&gt;
    exit&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;echo pkg load all &amp;gt;&amp;gt; ~/.octaverc
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brian Broom-Peltz</dc:creator><pubDate>Thu, 30 Apr 2015 20:59:39 -0000</pubDate><guid>https://sourceforge.netc7b7fc8a21439eabefd346d6bc223e1675d43a32</guid></item></channel></rss>