Installing CUDA, PyCUDA on Ubuntu

Slides:



Advertisements
Similar presentations
Backups In Linux. The Linux System Many Linux distros set up seperate "/home" and "/" (root) partitions. User configuration files are hidden with a "."
Advertisements

Python Lab Proteomics Informatics, Spring 2014 Week 1 28 th Jan, 2014 Himanshu Grover
Software Carpentry Boot Camp Python V0.1 dd
Embedded Programming and Robotics Lesson 19 Raspberry Pi Programming in C 1.
Computer System Laboratory
DataStax Enterprise on Microsoft Azure. BrightView Analytics provides a robust Software-as-a-Service (SaaS) business solution, which delivers critical.
Package Managers What are they and why we use them.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Embedded Programming and Robotics Lesson 17 The OpenCV (Computer Vision) Library The OpenCV Library1.
Hands-on session 2 Monitoring Jose Gonzalez Universidad Politecnica Madrid Attilio Broglio Create-Net
Lab 3 Department of Computer Science and Information Engineering National Taiwan University Lab3 - Cross Tools 2014/10/7/ 20 1.
Kernel Development using Virtualization Installing VMWare and using a virtual machine to build and test a Linux Kernel.
2008 Taipei, Taiwan Ubuntu Linux Server Structure and Config APRICOT 2008 Network Management Workshop February 20 – Taipei, Taiwan.
A few Linux basics Network Monitoring & Management.
LING 408/508: Programming for Linguists Lecture 3 August 31 st.
ABAQUS Installation on LINUX Platform D. Hanumanthappa, A. Jérusalem May 5th, 2010.
baltrad node installation for beginners On Ubuntu Jesper Ellerbæk Nielsen Aalborg University, DK.
Install Software. UNIX Shell The UNIX/LINUX shell is a program important part of a Unix system. interface between the user & UNIX kernel starts running.
Android x86 Build Environments Update 1.Update System $sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev libc6-dev.
A Practical Guide to Fedora and Red Hat Enterprise Linux Unit 8: Installing Software in Linux Chapter 13: Downloading and Installing Software By Fred R.
2008 Bangkok, Thailand Ubuntu Linux Server Structure and Config intERLab at AIT Network Management Workshop March 11 – Bangkok, Thailand.
1 What is a Kernel The kernel of any operating system is the core of all the system’s software. The only thing more fundamental than the kernel is the.
Embedded Programming and Robotics
New Delhi, India Ubuntu Linux Server Structure and Config PacNOG5 June 16 – Papeete, French Polynesia Hervey Allen.
Introduction of Speaker: Claudia 1.
Ryu Speaker : Angela.
Run your first C program.  Bring your computers to class  No prior programming experience is needed  Hours spent  Sakai  TAs.
Cole David Ronnie Julio Sam Littlefield. Let’s Begin  Globus Toolkit runs on Unix platform only  Install Ubuntu  download all updates for Ubuntu.
ZHT Hands-on tutorial How to install, configure and run ZHT on a multi-nodes cluster.
DATA MINING Pandas. Python Data Analysis Library A library for data analysis of (mostly) tabular data Gives capabilities similar to Excel and SQL but.
SQOOP INSTALLATION GUIDE Lecturer : Prof. Kyungbaek Kim Presenter : Zubair Amjad.
LOGO Linux Installation. Linux Distribution Including shells, libraries, tools, compiler, servers, applications. Redhat, Fedora, Mandrake, SuSE, Debian,
Nachos Overview and Project 1. Nachos Introduction Official website
ECE 544 Software Project 1 Kuo-Chun Huang (KC). Environment Linux (Ubuntu or others) Windows with Cygwin
Blackfin buildroot development
1P.Miné CompHEP from. 2P.Miné CompHEP Installation for Linux Download from : comphep tgzhttp://comphep.sinp.msu.ru Untar.
MySQL Introduction. Outline MySQL Introduction & Installation MySQL Command-Line Tool MySQL Workbench Introduction MySQL with Python Code Example.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Ns2 Installations and Basics Abdul Razaque. How to install Ubuntu on windows-7 & 8 Download the Ubuntu ISO file. You can get the ISO file from the Ubuntu.
New Delhi, India Ubuntu Linux Server Structure and Config PacNOG5 June 16 – Papeete, French Polynesia Hervey Allen.
2008 Taipei, Taiwan Ubuntu Linux Server Structure and Config APRICOT 2008 Network Management Workshop February 20 – Taipei, Taiwan.
Bangkok, Thailand Ubuntu Linux Server Structure and Config intERLab at AIT Network Management Workshop March 11 – Bangkok, Thailand.
Copy from Windows to Ubuntu
CS5100 Advanced Computer Architecture
MET4750 Techniques for Earth System Modeling
Install external command line softwares
Installation Guide of DMPSW
pycuda Jin Kwon Kim May 25, 2017 Hi my name is jin kwon kim.
DATA MINING Python.
AES on GPU using CUDA Choi dae soon.
Using Linux and Lab Setup OS Lab 1
Writing standalone Qt & Python applications for Android workshop
Syzix: heading off the beaten $PATH
Configuring Kali Machine
Using PowerShell with Python & SQL Server
Test Automation For Web-Based Applications
SimpleITK Setup and Schedule
SimpleITK Setup and Schedule
EMSE 6574 – Programming for Analytics: Python 101 – Python Enviornments Joel Klein.
UNIX/Linux Development Environment
Option One Install Python via installing Anaconda:
Extending Languages.
Python/TensorFlow Installation
Computer System Laboratory
Lab 1: Getting Started.
SimpleITK Setup and Schedule
University of Washington CSE 416 Spring 2019 Hongjun Wu
Python Environments The following is specific for conda installation, but with small variations applies to everything
AI for Beginners from a Beginner
Computational Environment Management
Presentation transcript:

Installing CUDA, PyCUDA on Ubuntu

Installing CUDA on Ubuntu Linux 1 Cuda download site https://developer.nvidia.com/cuda-downloads $ sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb $ sudo apt-get update $ sudo apt-get install cuda $ vim ~/.bashrc # cuda export CUDA_HOME=/usr/local/cuda export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 export PATH=${CUDA_HOME}/bin:${PATH} $source ~/.bashrc $ cuda-install-samples-7.5.sh ~ $ cd ~/NVIDIA_CUDA-7.5_Samples $ cd 1_Utilities/deviceQuery $ make

Installing PyCUDA on Ubuntu Linux 2 Step 0: Ensure that CUDA is installed and settings are correct Step 1: Install gcc4.8 (Ubuntu 14.04) Step 2: Install Boost C++ libraries Step 3: Install numpy $ Numpy download site http://sourceforge.net/projects/numpy/files/ $ sudo apt-get install build-essential gcc-4.8 g++-4.8 $ cd /usr/bin $ sudo ln -sf gcc-4.8 gcc $ sudo apt-get install libboost-all-dev $ sudo apt-get install python-numpy –y $ cd pycuda-VERSION $ sudo "python distribute_setup.py" $ sudo "easy_install numpy" $ sudo apt-get install git $git clone http://github.com/numpy/numpy.git numpy

Step 4: Download, unpack and install PyCUDA Download pycuda https://pypi.python.org/pypi/pycuda $ sudo apt-get install build-essential python-dev python-setuptools libboost-python-dev libboost-thread-dev –y $ tar xzvf pycuda-VERSION.tar.gz $ cd pycuda-VERSION $ ./configure.py --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib --boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib --boost-python-libname=boost_python-py27 --boost-thread-libname=boost_thread $ make -j 4 $ sudo python setup.py install $ sudo pip install . $ ./configure.py --python-exe=/usr/bin/python3 --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib --boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib --boost-python-libname=boost_python-mt-py32 --boost-thread-libname=boost_thread-mt --no-use-shipped-boost $ sudo python3 setup.py install

Step 5: Import pycuda on system python $ cd /usr/bin $ ./python [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import pycuda >>> dir(pycuda) ['VERSION', 'VERSION_STATUS', 'VERSION_TEXT', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__'] >>> pycuda.VERSION (2015, 1, 3) >>> import numpy >>> numpy.__version__ '1.8.2'

Installing PyCUDA on anaconda python 3 Step 0: Anaconda download site https://www.continuum.io/downloads Step 1: Python path setting Step 2: Install pycuda $bash Anaconda2-2.4.1-Linux-x86_64.sh $vim ~/.bashrc # python export PYTHONPATH=“/home/nh/anaconda2/bin:$PYTHONPATH” $sourcd ~/.bashrc $ cd anaconda2 $ conda install pip $ pip install pycuda

Step 3: Import cuda on anaconda python Python 2.7.11 |Anaconda 2.4.1 (64-bit)| (default, Dec 6 2015, 18:08:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org >>> import pycuda >>> dir(pycuda) ['VERSION', 'VERSION_STATUS', 'VERSION_TEXT', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']