This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 491
IDE Nvidia’s Eclipse Nsight
Domenic Curro edited this page Feb 10, 2016
·
6 revisions
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
- 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
.
Select the hammer icon in the top menu bar. It should work out of the box.
- 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 <Number of cores that you have>
When this is complete, the Make Target Pane should have a target named build_test
. Double click build your 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.
- 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.
- 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.