IDE Nvidia’s Eclipse Nsight - BVLC/caffe GitHub Wiki
Nsight Eclipse Edition
Nsight Eclipse is a tool made by NVidia to assist in edditing, building, debugging Cuda applications. It is avaible on the NVidia developer site at: https://developer.nvidia.com/nsight-eclipse-edition
Creating a caffe Project
- Launch Nsight.
- Navigate to File -> New -> Makefile Project with Existing Code.
- Name your project caffe, or something of your choosing.
- Under existing code location, select the browse button.
- Navigate to your caffe directory.
- Select OK.
- Select Finish.
- Open the caffe Makefile.config and uncomment the debug line:
DEBUG := 1
.
Building caffe and tests
Building caffe
Select the hammer icon in the top menu bar. It should work out of the box.
Building Tests
- In the Make Target Pane, right-click and select
New...
- Name the target
build_test
. - Clear the Make Target field.
- In the Build Command field enter
make test -j
When this is complete, the Make Target Pane should have a target named build_test
. Double click build your tests.
Running All Tests
- In the Make Target Pane, right-click and select
New...
- Name the target
run_all_tests
. - Clear the Make Target field.
- In the Build Command field enter
make runtest
When this is complete, the Make Target Pane should have a target named run_all_tests
. Double click this to run all of your tests.
Debugging
First Time
- Ensure that you've built everything (the code and the tests).
- Click the bug icon in the top menu.
- You will be presented with a list of bin objects.
- Select the one you want to debug.
Second Time and on (if you don't want to debug the same bin)
- Select the little arrow beside the bug icon.
- Select
Debug Configurations...
. - Under the Main tab, select Search Project.
- Select the new bin you want to debug.
Some additional references
http://www.pittnuts.com/2015/06/build-and-debug-caffe-in-nsight/