"Matconvnet" Configuration GPU

Source: Internet
Author: User

The method of referring to the great God: http://www.th7.cn/system/win/201603/155182.shtml

First step: Need to install CUDA, vs2013;cuda default path, note Cuda version and GPU to match

The second step:. Download CUDNN, build a local folder under the Matconvnet folder, and put the CUDNN in (I changed the filename called CUDNN)

Step three: Open vl_compilenn.m, Run, wait for compilation to finish


The fourth step is to copy the Cudnn64_4.dll under the bin to the Mex folder.

Fifth step: Copy the following code to MATLAB command window, change the corresponding path and folder name, run, wait for the end of compilation.

Vl_compilenn (' Enablegpu ', true, ' cudaroot ', ' C:/programfiles/nvidia GPU Computing toolkit/cuda/v8.0 ', ' cudamethod ', ' NVCC ', ' enablecudnn ', ' true ', ' cudnnroot ', ' local/cudnn ')

Sixth step: Change the options, opts.train.gpus= [1]; Use gpu,[] to indicate CPU use, do not [0]

Finally, you can run.

GPU and CPU Comparison

GPU:GTX 960M

CPU:I5 4200 HQ

"Matconvnet" Configuration GPU

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.