[Turn] windows+vs2013 explode detailed caffe compiling installation tutorial

Source: Internet
Author: User
Tags parent directory

1. Cuda Installation

Cuda is a GPU-accelerated computing platform from NVIDIA

I installed here is cuda7.5, has been installed ignored, has not been installed here is the installation tutorial. It's very simple to install under Windows.

Click on the Open link (my video card is 1080 now supports cuda8.0 so I'm under 8.0)

2. download CUDNN (actually a compressed package) Note Now that 8.0 is out, I am under CUDNN V5 (May), the for CUDA 8.0 RC

Https://developer.nvidia.com/cudnn

For deep learning acceleration.

In the middle there may be a registration process, register yourself. has now supported V5, I am under the V5, not in the V3

Then click on the download.

3. Download the Caffe source tarball from Microsoft Official GitHub.

Microsoft has also ported Caffe, which is a bit simpler to configure under Windows.

Https://github.com/Microsoft/caffe

4. installation

1. After the above steps, Cuda should have been properly installed. After Cuda is installed, its environment variable is also automatically set up, not manually set.

There should also be two compression packs: a CUDNN tarball and a Caffe source package. (I was placed under the D-Disk Caffe folder), note is 7.0, the actual I was under the CUDNN V5 (May,), the for CUDA 8.0 RC

2. Unzip these two packages to get

3. Open the Caffe-master folder, then see a Windows folder, then continue to open the Windows folder, see inside a CommonSettings.props.example file, copy it out, and change the name to Commonsettings.props.

4. Open Caffe.sln with VS2013 (just to the folder inside), open the effect as follows best set Libcaffe for startup project, sometimes Libcaffe not loaded successfully.

The reason is that CUDA 8.0.props is missing from the installation path of vs2013, and mine is this path C:\Program Files (x86) \msbuild\microsoft.cpp\v4.0\v120\buildcustomizations

In fact Cuda 8.0.props is in the Cuda installation directory, my path is C:\Program files\nvidia GPU Computing toolkit\cuda\v8.0\extras\visual_studio_ Integration\msbuildextensions

Just copy to C:\Program Files (x86) \msbuild\microsoft.cpp\v4.0\v120\buildcustomizations, then Libcaffe and Testall are all right!

5. Open Commensetting.probs. Place the directory path of the folder Cuda where the extracted cudnn is stored in Cudapath. (For example, I am here under the D:caffe)

That is to extract the Cuda folder from Cudnn-8.0-windows7-x64-v5.1-rc.zip, put it under D:caffe, and then Cudapath set to D:\Caffe this is because the program will give you Cuda, for example ( Cudnnpath) \cuda\lib\x64;$ (LibraryPath) </LibraryPath>

So you just need to specify its parent directory.

6. Open the settings,

Choose a compilation type of release,x64

Turn off view warnings as errors (that is, set to NO) if you do not set it, you will get an error when compiling the boost library due to a text encoding warning.

Then it starts compiling, ( Libcaffe is compiled first). Wait, wait. The compilation was successful.

At this time, a folder called build should appear under the Caffe-master folder you just unzipped.

Subsequent compilation of successful and run-required files will be stored under build\x64\relase.

Previously prompted is the first compiled Libcaffe, on the solution above right click on the Select Attribute (properties)

You can find that the default selection is a single task, compiling only Libcaffe. This is why the Libcaffe was first compiled before default.

Next, you can select more tasks to compile. Similarly, we can then only choose Caffe to compile, the same attention to release and X64.

Then a similar build waits ...

And then the compilation was successful ... There are some other needs when compiling again:

Note: The official version of Microsoft is selected because some dependent libraries are automatically downloaded during the compilation process. (see) No manual selection, so it's very simple and convenient.

Transferred from: http://blog.csdn.net/xierhacker/article/details/51834563

[Turn] windows+vs2013 explode detailed caffe compiling installation tutorial

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.