[PYTHON] How to update to Chainer 2.0 (Windows + CUDA 8.0 + CUDNN)

Purpose of this article

In Chainer2.0, the program structure has changed due to the independence of cupy. When I updated it, I got stuck a little, so I wrote a procedure at the memorandum level.

Prerequisite environment

Please refer to the following page for how to create a basic environment. Install Chainer + CUDA 8.0 on Windows 10

Environment before update

Update procedure

1. Uninstall Chainer

pip uninstall chainer

2. CUDNN update (6.0)

The new Chainer has been separated from cupy (a numpy library with CUDA functionality), so it will be compiled against CUDNN during CUPY installation. The current cupy (1.0.0.1) requires cudnn v6.0. So get v6 from NVIDIA. https://developer.nvidia.com/cudnn Note: Member registration is required

Extract the downloaded zip file and select bin, include, lib under the cuda folder for each folder. C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0 Copy to.

3. cupy installation

Install using pip pip install cupy It takes about 1 minute. If it finishes smoothly, review the environment variables because cudnn is not recognized.

Confirmation work python >>> import cupy

>>> import cupy.cudnn


 If there are no errors, it is successful.

#### 4. Chainer installation
`pip install cahiner --no-cache-dir`

## Summary
 I was already running it in an environment with cudnn, so this time it was relatively easy,
 If you make it from the initial environment, it seems that you need to review the environment variable settings of path and include again.
 (Maybe it's a little easier !?)



















Recommended Posts

How to update to Chainer 2.0 (Windows + CUDA 8.0 + CUDNN)
The easiest way to get Chainer v1.5 + CUDA + cuDNN on Windows
How to update easy_install
How to update Spyder
How to force build TensorFlow 2.3.0 for CUDA11 + cuDNN8
How to install Python [Windows]
How to update Python Tkinter to 8.6
How to update with SQLAlchemy?
How to use Dataiku on Windows
How to update Spyder in Anaconda
How to install pycrypto on Windows
How to deploy django-compressor on Windows
How to install CUDA and nvidia-driver
How to install music 21 on windows
[Kivy] How to install Kivy on Windows [Python]
How to update Google Sheets from Python
How to install DLIB with 2020 / CUDA enabled
How to use Cmder with PyCharm (Windows)
How to manually update the AMP cache
How to update php on Amazon linux 2
How to use Google Assistant on Windows 10
How to install richzhang / colorization on Windows 10
How to install Windows Subsystem For Linux
How to update security on CentOS Linux 8
How to make multi-boot USB (Windows 10 compatible)
Build procedure for TensorFlow 2.4.0 (Windows10, CUDA11.1.1, cuDNN 8.0.5, Python 3.8.6)
How to update security on Ubuntu 19.10 Eoan Ermine
How to quickly install h5py on Windows 10 [Unofficial]
Build procedure of TensorFlow 2.2.0-rc0 (CUDA10.2 + cuDNN7.6.5) --Windows10
How to create data to put in CNN (Chainer)
How to add Anaconda Powershell Prompt to Windows Terminal?
How to live a decent life on 2017 Windows
[Python] How to install OpenCV on Anaconda [Windows]
[TF] How to specify variables to update with Optimizer
How to install / verify graphviz on anaconda / windows10
Steps to build PyTorch 1.5 for CUDA 10.2 on Windows
How to build two CentOS7 environments / Windows10 + VirtualBox + Vagrant
[Blender] Summary of how to install / update / uninstall add-ons
How to share folders with Docker and Windows with tensorflow
Autoencoder with Chainer (Notes on how to use + trainer)
How to use jupyter lab in Windows 10 local environment
How to run Django on IIS on a Windows server
Let's Deep Learning on Windows! (VS2013 + caffe + CUDA7.5 + cudnn5.1)
How to operate Firefox with selenium on Windows Memo
How to use xml.etree.ElementTree
How to use Python-shell
How to use tf.data
Scraping 2 How to scrape
How to use Seaboan
How to use image-match
How to use shogun
How to install Python
How to use Pandas 2
How to read PyPI
How to install pip
How to use Virtualenv
How to use numpy.vectorize
How to install archlinux
How to use pytest_report_header
How to restart gunicorn
How to install python