How to use nsight to debug Caffe on the TX2 remotely ?

I can successfully compile and run Caffe on TX2, but I want to use nsight to debug Caffe remotely on the host , which is actually compiled and run on the TX2. How can I achieve it? I have no idea how to import and configure project.

Please check


I have followed ,but it still cannot work. I am running nvvp on my VM Ubuntu16.04 host system to profile the TX2 system。It can work perfectly when profiling sample applications or others, but cann’t work when profiling Caffe application. Here is my setting:
Toolkit/script: usr/local/cuda-9.0/bin
Working directory:/home/nvidia/caffe
Arguments:./build/examples/cpp_classification/classification.bin models/bvlc_alexnet/deploy.prototxt models/bvlc_alexnet/bvlc_alexnet.caffemodel data/ilsvrc12/imagenet_mean.binaryproto data/ilsvrc12/synset_words.txt examples/images/cat.jpg
Profile current process only
But I got the error:
Usage: /home/nvidia/caffe/build/examples/cpp_classification/classification.bin deploy.prototxt network.caffemodel mean.binaryproto labels.txt img.jpg
======== Error: Application returned non-zero code 1
How can I solve the problem and profile Caffe application on TX2 ?


Please post this question in Visual profiler forum.