[PYTHON] A memo of installing Chainer 1.5 for GPU on Windows

I set up a new PC and installed Chainer 1.5 on Windows. When I tried to use the GPU, it was a little troublesome, so I will leave a note. My environment is Windows 8.1 64bit version.

Installation around CUDA

Install CUDA first. If you installed Chainer first without a CUDA environment, it seems that you need to enable CUDA and then install Chainer again.

Microsoft Visual C++ Compiler for Python 2.7 It seems to compile the module when installing Chainer, so it is necessary for that.

Visual Studio installation

Apart from the above one, it is necessary to use nvcc (CUDA compiler) when running GPU compatible code. CUDA 7.5 seems to support VS 2010, 2012, 2013. If you have a commercial version of Visual Studio, you can install it normally.

This time it was for home, so I tried to use the free Visual Studio 2013 Express, but CUDA 7.5 doesn't seem to officially support the Express version. The only problem seemed to be the difference between the directory name and file name, so I was able to move it safely by following the steps below.

Python installation

Python for Windows is distributed in various packages, and I'm not sure which one to choose. I also want to use Jupyter, so this time I decided to install it from Anaconda.

Install Chainer

Try moving the sample

Execute \ Microsoft Visual Studio 12.0 \ vc \ bin \ amd64 \ vcvars64.bat "``` (directory changes depending on VS version)

Recommended Posts

A memo of installing Chainer 1.5 for GPU on Windows
Install Chainer 1.6 (GPU) on Windows 7.
A memo that reproduces the slide show (gadget) of Windows 7 on Windows 10.
[Note] Procedures for installing Ubuntu on Windows 10
A memo of a tutorial on running python on heroku
A tool for creating symbolic links on Windows
Installing TensorFlow on Windows Easy for Python beginners
[Windows] Memo to use Keras on GPU [Tensorflow-GPU]
Install Chainer 1.5.0 on Windows
Build a Python extension for E-Cell 4 on Windows 7 (64bit)
[Heroku] Memo for deploying Python apps using Heroku on Windows [Python]
Building a TensorFlow environment that uses GPU on Windows 10
Procedure for building a CDK environment on Windows (Python)
Prepare Chainer environment on Windows
F2py on Miniconda for Windows
Notes on installing Anaconda 3 on Windows
[Python] [Chainer] [Windows] Install Chainer on Windows
Memo of Linux environment construction using VirtualBox + Vagrant on Windows 10
Create a Python environment for professionals in VS Code on Windows
Python environment construction memo on Windows 10
Installing Kivy-Designer on Windows10 64bit Python3.5
Create a Linux environment on Windows 10
[Go] Procedure for installing Go on WSL2
Location of pip.ini (pip.conf) on Windows 10
Neighborhood search for a set of (geographical coordinates) points on a sphere
[Windows] A story of a beginner who stumbles on Anaconda's PATH setting.
pykintone on Windows Subsystem for Linux
For Windows: Get a list of directories and files under a specific directory.
Randomly play the movie on ChromeCast for a certain period of time
A memo for utilizing the unit test mechanism KUnit of the Linux kernel
Python learning memo for machine learning by Chainer Chapter 13 Basics of neural networks
A python script for Mac that zips without garbled characters on Windows
Verification of how to periodically execute a script on a Linux server on Windows
Python learning memo for machine learning by Chainer until the end of Chapter 2
Rock-paper-scissors with Python Let's run on a Windows local server for beginners
Notes for using OpenCV on Windows10 Python 3.8.3.
Run Radeon GPU on Windows on QEMU / KVM
Run TensorFlow on a GPU instance on AWS
Programming environment for beginners made on Windows
Notes for installing Sublime Text on Ubuntu
Impressions of using Flask for a month
A memo with Python2.7 and Python3 on CentOS
A struggle when installing pyenv on Cygwin
Creating a python virtual environment on Windows
Use without installing python 2.x on Windows
GPU check of PC on jupyter notebook
Memo for creating a text formatting tool
I built a TensorFlow environment on windows10
Create a Linux virtual machine on Windows
A memo explaining the axis specification of axis
Run matplotlib on a Windows Docker container
Building an environment for "Tello_Video" on Windows
I tried a TensorFlow tutorial (MNIST for beginners) on Cloud9-Classification of handwritten images-
[Forefront of Object Recognition 2020] Logs from installing Pytorch on Windows 10 to running CornerNet-Lite.
I tried object detection with YOLO v3 (TensorFlow 2.1) on the GPU of windows!
[Linux] Review of commands for deploying on AWS
Machine learning memo of a fledgling engineer Part 1
GPU ~ Implementation of PlaidML on Mac ~ (as of May 2020)
Make a bot for Skype on EC2 (CentOS)
Open a ZIP created on Windows in Linux
(Windows) Causes and workarounds for UnicodeEncodeError on Python 3