1.install nsight
package on ubuntu is below
https://download.csdn.net/download/meihuashan_hust/11161449
2.import caffe
file->New->makefile project with existing code
input project name and choose code location
toolchian choose Linux GCC
2.build
suppose you can edit makefile.config and make file correctly and build caffe succeed
attention:here you should uncomment DEBUG :=1
you can build caffe in nsight or on terminal
3.run->debug configuration
push “new” button to create a configration
“Main” menu C/C++ Application you must input caffe path in “.build_debug” not “.build” later is not support debug
“Arguments” menu input “train -solver=xxx” not “train --solver” later will error
4.debug
push “debug” button
attention in solver.prototxt
if mode is GPU you can set breakpoint in .cu files
if mode is CPU you can set breakpoint in .cpp files
like this solver mode is CPU
nsight debug caffe
最新推荐文章于 2024-01-18 21:38:45 发布