Caffe IDE Debugging issues

Source: Internet
Author: User

This article address: http://blog.csdn.net/mounty_fsc/article/details/51089864 1 run the sample script train_lenet.sh

Ubuntu Terminal Line execution train_lenet.sh can be trained lenet-5 (details refer to other tutorials), can visually see lenet training with the situation.
The contents of train_lenet.sh are:

./build/tools/caffe Train–solver=examples/mnist/lenet_solver.prototxt

Note: – For two--,cndn display problems

Involves program Caffe and file Lenet_solver.prototxt two files. Thus debugging caffe in the input parameter band. 2 Cuda related issues

If you do not consider the mode Cuda code, the following content is ignored

Ubuntu uses the Eclipse-mode Caffe code, which is primarily two Ides, one is the eclipse CDT and the other is the Nsight Eclipse Edition Eclipse CDT: Used to develop C + +, this article describes this approach nsight Eclipse Edition: Install Cuda's own IDE, which is the best option if you need to tune Cuda code and use Nsight Eclipse Edition mode , because of the Cuda-related code in Caffe.

General PC use Nsight will face a problem:

All CUDA devices are used for display and cannot is used while debugging Ubuntu under the graphical interface mode Cuda, a single video card can not be used for both display and mode. There's no such problem with Win 7.

The solution to this problem is: Do not use the graphical interface for the mode Cuda, meaning not to use the Nsight not native mode, the use of Nsight remote debug features

Cuda more than 5.5, graphics card computing capacity of more than 3.5, otherwise must be a graphics display, a graphics card calculation. Resources good: https://devblogs.nvidia.com/parallelforall/cudacasts-episode-4-single-gpu-debugging-cuda-5-5/video https:// Www.youtube.com/watch?v=nKKLqc2TgsI (Need tool, you know)

Do not know whether there are other ingenious methods, if any, to share ... 3 Eclipse Single Step debugging code

Eclipse Import Caffe Project tutorials for details: http://blog.csdn.net/yaoxingfu72/article/details/47999795
Open the Caffe project in Eclipse and configure the debugger as follows :

1. Debug as-> Debug configurations.

2. Set debug with program, and Run-time parameters

3. Click on the lower right corner of the image debug debug
Where the Build/tools/caffe corresponds with the source code in the Tools/caffe.cpp

4. Configure Cuda header file path
If not configured, there will be no cuda associated file errors found in eclipse.

5. Let eclipse identify cuda source files

4 clion Import Caffe Project

Clion is an excellent IDE developed by Jetbrain for C + +, its import process see reference [1]

[1]. http://blog.csdn.net/xuanwu_yan/article/details/51731132

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.