# Nsight Compute doesn't profile VS app

**URL:** <https://forums.developer.nvidia.com/t/nsight-compute-doesnt-profile-vs-app/177420>\
**Category:** Nsight Visual Studio Edition\
**Created:** [May 9, 2021, 2:18pm UTC](https://forums.developer.nvidia.com/t/nsight-compute-doesnt-profile-vs-app/177420 "2021-05-09T14:18:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geohei](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/geohei/32/37825_2.png) [@geohei](https://forums.developer.nvidia.com/u/geohei)\
**Post date:** [May 9, 2021, 2:18pm UTC](https://forums.developer.nvidia.com/t/nsight-compute-doesnt-profile-vs-app/177420/1 "2021-05-09T14:18:31Z")

</div>

Hi.

I’m stuck with NVIDIA Nsight Compute (2021.1.0.0).  
I installed `NVIDIA_Nsight_Visual_Studio_Edition_Win64_2021.1.0.21103_29839620.msi`.

My CUDA console app runs fine when started from console.  
The app was coded using VS2019.  
CUDA 11.3 toolkit is installed.

When I connect/launch with Nsight Compute …

the `Connect to process` windows shows:

```
Progress Log

Launched process: ncu.exe (pid: 18352)
Launch succeeded.
Profiling...

```

the console shows:

```
==PROF== Attempting to connect to ncu-ui at 192.168.1.35:50152...
==PROF== Connected to ncu-ui at 192.168.1.35:50152.

```

The app doesn’t execute beyond the first API call (`cudaMallocManaged()`).

When I stop the console window, I get a warning message:

```
The profiler returned an error code: 3221225786 (0xc000013a)

```

All this independently whether I use the debug or release version.  
I tried the same on an Ubuntu system, Nsight Compute profiles the same app properly.  
I believe I’m missing something basic, but I don’t catch what it might be.

Any ideas?
