# Problem with nsight

**URL:** <https://forums.developer.nvidia.com/t/problem-with-nsight/115583>\
**Category:** Jetson TX2\
**Tags:** nsight\
**Created:** [March 16, 2020, 9:26am UTC](https://forums.developer.nvidia.com/t/problem-with-nsight/115583 "2020-03-16T09:26:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon79190853](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anon79190853](https://forums.developer.nvidia.com/u/anon79190853)\
**Post date:** [March 16, 2020, 9:26am UTC](https://forums.developer.nvidia.com/t/problem-with-nsight/115583/1 "2020-03-16T09:26:11Z")

</div>

Hello,

Actually, I need to process some images with the jetson TX2.  
I wanted to develop directly on the jetson TX2. So I began with codeblocks, but there is not a comprehensive system which allow to develop directly on the jetson. To perform my program, I have to use the GPU.

I need a tool which include debugger CPU/GPU, profile. A comprehensive tool !  
The only seems to be nsight eclipse, and nsight eclipse doesn’t support jetson environment, so I have to use a host computer …  
I have flashed the jetson from the host computer, and the environment development was installing in the same time in the host computer.

I tried a simple code :

**#include\<stdio.h\>**

**global void cuda\_hello(){**  
**printf(“Hello World from GPU!\n”);**  
**}**  
**int main() {**  
**cuda\_hello\<\<\<1,1\>\>\>();**  
**return 0;**  
**}**

I have the following error :

_Incremental Build of configuration Debug for project Test\_1_  
_make all -C /home/jetson/Cuda\_Target/Debug_  
_make: Entering directory ‘/home/jetson/Cuda\_Target/Debug’_  
_Building file: …/main.cu_  
_Invoking: NVCC Compiler_  
_nvcc -G -g -O0 -ccbin aarch64-linux-gnu-g++ -gencode arch=compute\_35,code=sm\_35 -m64 -odir “.” -M -o “main.d” “…/main.cu”_  
_subdir.mk:18: recipe for target ‘main.o’ failed_  
_/bin/sh: 1: nvcc: not found_  
_make: Leaving directory ‘/home/jetson/Cuda\_Target/Debug’_  
_make: [main.o] Error 127_

I have nvcc, and I add the path in the host computer :  
export PATH=/usr/local/cuda-10.0/bin:/usr/local/cuda-10.0/NsightCompute-1.0${PATH:+:${PATH}}  
export LD\_LIBRARY\_PATH=/usr/local/cuda-10.0/lib64${LD\_LIBRARY\_PATH:+:${LD\_LIBRARY\_PATH}}

I don’t understand the error.

Furthermore, I already have installed all librairies in the jetson to communicate with a Gige camera. Do I have to install all the libraries on the host computer too ? And how link the librairies ? I didn’t find a comprehensive example.

I have an other question. Does the host need to require hardware and software specification ? To flash the jetson, the host computer has to run with ubuntu 16.04/18.04, and at least 8Go of RAM. But only to develop code and connect by ssh, can I use a host computer which runs in windows, with 6Go of RAM ?

Thank you for your help !

---

<div class="post-metadata">

**Author:** ![anon79190853](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anon79190853](https://forums.developer.nvidia.com/u/anon79190853)\
**Post date:** [March 16, 2020, 10:50am UTC](https://forums.developer.nvidia.com/t/problem-with-nsight/115583/2 "2020-03-16T10:50:23Z")

</div>

Ok so actually the problem was because of the setting. The host computer has 86-64 cpu architecture, but I have to enter “native”, otherwise I have the error. Do you have an explanation ?

Now, I can compile the code, without any errors. But the hello word from GPU doesn’t work :  
_ **#include\<stdio.h\>** _  
_**global void cuda\_hello(){**_  
\*\*\* printf(“Hello World from GPU!\n”);\*\*\*  
_ **}** _  
_**void hello(){**_  
\*\*\* printf(“Hello \n”);\*\*\*  
_ **}** _  
_**int main() {**_  
_**hello() ;**_  
_**cuda\_hello\<\<\<1,1\>\>\>() ;**_  
_ **return 0;** _  
_ **}** _

and the output is :  
_ **Hello** _

An idea ?

Thank you !

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [March 17, 2020, 6:05am UTC](https://forums.developer.nvidia.com/t/problem-with-nsight/115583/4 "2020-03-17T06:05:13Z")

</div>

Hi,

To profile an application on Jetson, it’s recommended to use remote profiling rather than cross profiling.  
Remote profiling builds and executes the application on the device with ssh, which releases you from installing all the libraries on host.

Properties → Build → Target Systems → Select remote connection

Thanks.

---

<div class="post-metadata">

**Author:** ![anon79190853](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anon79190853](https://forums.developer.nvidia.com/u/anon79190853)\
**Post date:** [March 17, 2020, 7:38am UTC](https://forums.developer.nvidia.com/t/problem-with-nsight/115583/5 "2020-03-17T07:38:20Z")

</div>

Hi,

Ok thank you ! But in that case, how can I indicate to nsight which librairies from the target I need ?  
I already connect the connect the target and launch a sample.

I have an other question. Does the host need to require hardware and software specification ? To flash the jetson, the host computer has to run with ubuntu 16.04/18.04, and at least 8Go of RAM. But only to develop code and connect by ssh, can I use a host computer which runs in windows, with 6Go of RAM ?

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [March 31, 2020, 9:12am UTC](https://forums.developer.nvidia.com/t/problem-with-nsight/115583/6 "2020-03-31T09:12:13Z")

</div>

Hi,

If you are using the remote compile and execution, there is no special requirement on your host.  
Just make sure you can ssh Jetson device without issue.

Thanks.

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:18pm UTC](https://forums.developer.nvidia.com/t/problem-with-nsight/115583/8 "2021-10-18T18:18:38Z")

</div>

Closed on October 18, 2021, 6:18pm UTC


