# Run Nsight compute command in ubuntu 20.04

**URL:** <https://forums.developer.nvidia.com/t/run-nsight-compute-command-in-ubuntu-20-04/221328>\
**Category:** Nsight Compute\
**Tags:** cuda\
**Created:** [July 20, 2022, 10:33am UTC](https://forums.developer.nvidia.com/t/run-nsight-compute-command-in-ubuntu-20-04/221328 "2022-07-20T10:33:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![329079593](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@329079593](https://forums.developer.nvidia.com/u/329079593)\
**Post date:** [July 20, 2022, 10:33am UTC](https://forums.developer.nvidia.com/t/run-nsight-compute-command-in-ubuntu-20-04/221328/1 "2022-07-20T10:33:21Z")

</div>

Hi,

I have trouble running ncu command in ubuntu 20.04. When I run the command `sudo ncu ./myscript`, here is the output:

```auto
==PROF== Connected to process 2410 (/path/to/myscript)
==ERROR== Unknown Error on device 0.
==PROF== Disconnected from process 2410
==WARNING== No kernels were profiled.
==WARNING== Profiling kernels launched by child processes requires the --target-processes all option.

```

cuda version:  
Cuda compilation tools, release 11.6, V11.6.124  
Build cuda\_11.6.r11.6/compiler.31057947\_0

ncu version:  
Version 2022.1.1.0 (build 30914944) (public-release)

Much appreciated if anyone can help.

---

<div class="post-metadata">

**Author:** ![Sanjiv.Satoor](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sanjiv.satoor/32/14043_2.png) [@Sanjiv.Satoor](https://forums.developer.nvidia.com/u/Sanjiv.Satoor)\
**Post date:** [August 22, 2022, 4:30am UTC](https://forums.developer.nvidia.com/t/run-nsight-compute-command-in-ubuntu-20-04/221328/2 "2022-08-22T04:30:49Z")

</div>

Does the command run correctly without the profiler?  
_./myscript_

As suggested by the warning message try:  
_ncu --target-processes all ./myscript_

Also to narrow down the issue you can try collecting a single simple metric:  
_ncu --target-processes all --metrics sm\_\_cycles\_elapsed.sum ./myscript_

---

<div class="post-metadata">

**Author:** ![329079593](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@329079593](https://forums.developer.nvidia.com/u/329079593)\
**Post date:** [August 22, 2022, 6:17am UTC](https://forums.developer.nvidia.com/t/run-nsight-compute-command-in-ubuntu-20-04/221328/3 "2022-08-22T06:17:51Z")

</div>

Hello Sanjiv,  
This is a duplicated topic, the original one is here: [https://forums.developer.nvidia.com/t/run-ncu-command-in-ubuntu-20-04/221322](https://forums.developer.nvidia.com/t/run-ncu-command-in-ubuntu-20-04/221322)

In order not to get confused, we can consider deleting this duplicated topic.

---

<div class="post-metadata">

**Author:** ![Sanjiv.Satoor](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/sanjiv.satoor/32/14043_2.png) [@Sanjiv.Satoor](https://forums.developer.nvidia.com/u/Sanjiv.Satoor)\
**Post date:** [August 22, 2022, 9:15am UTC](https://forums.developer.nvidia.com/t/run-nsight-compute-command-in-ubuntu-20-04/221328/4 "2022-08-22T09:15:53Z")

</div>

Closed on August 22, 2022, 9:15am UTC


