[Theano] Installing-python Theano cuda

Source: Internet
Author: User
Tags theano

I want to learning deep learning, so config Cuda is a essential step. Luckily it's very easy in Ubuntu

Install Theano+cuda in Ubuntu

1. Install Theano

A) sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git

b) sudo pip install Theano

2. Install Cuda

A) sudo apt install nvidia-331

If It is a successful, we can test it with

$dkms status

If you see the response like nvidia-331, 331.38, 3.13.0-24-generic, x86_64: installed , congratulations.

b) sudo apt install nvidia-cuda-toolkit

c) Reboot your machine

d) test with

Import Theanotheano.test ()

If you see something likeUsing gpu device 0: GeForce GT 740M,OK

e) Config

sudo vim ~/.theanorc

[global== GPU

OK We can enjoy the GPU.

Reference

Quick Install Theano under Ubuntu

Install Python cude in Ubuntu

[Theano] Installing-python Theano cuda

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.