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
nsight debug caffeyou can build caffe in nsight or on terminal
3.run->debug configuration
nsight debug caffepush “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
nsight debug caffe
4.debug
nsight debug caffepush “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

相关文章:

  • 2021-04-01
  • 2021-05-06
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-12
  • 2022-12-23
  • 2022-01-13
  • 2021-11-19
  • 2021-09-29
  • 2021-09-04
  • 2021-04-05
相关资源
相似解决方案