# No CUDA events collected

**URL:** <https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543>\
**Category:** Profiling x86 Windows Targets\
**Created:** [April 4, 2024, 2:59pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543 "2024-04-04T14:59:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![romina.72](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@romina.72](https://forums.developer.nvidia.com/u/romina.72)\
**Post date:** [April 4, 2024, 2:59pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/1 "2024-04-04T14:59:03Z")

</div>

I’m trying to profile a python project that uses CUDA (through pytorch) using the GUI (Nvidia Nsight Systems 2024.2.1) on Windows 11. I know the program definitely uses the GPU because I see the GPU usage on the Resource Monitor, and other profiling methods I’ve used that show the CUDA API calls and time spent on the GPU. However I would like to see how occupied my GPU is throughout the run of the program and what kernels are running on it.

My GPU is RTX 2070, Driver Version: 551.61, CUDA Version: 12.4. I do not have sudo permissions on this machine.

I get these errors in the Diagnostics Summary and am not able to see any GPU traces, only CPU ones.  
Warning Analysis 4 00:02.124   
CUDA profiling might have not been started correctly.  
Warning Analysis 4 00:02.124   
No CUDA events collected. Does the process use CUDA?

> **Summary**
>
> I have attached the log file as well.  
> [nsys-ui.log](https://forums.developer.nvidia.com/uploads/short-url/abMf5lYw0YL4d8u9bWOMex08Ow.log) (21.9 MB)

---

<div class="post-metadata">

**Author:** ![hwilper](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/hwilper/32/14043_2.png) [@hwilper](https://forums.developer.nvidia.com/u/hwilper)\
**Post date:** [April 4, 2024, 4:26pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/2 "2024-04-04T16:26:15Z")

</div>

@liuyis could you take a look at this?

I was going to ask about the driver version, but that should be recent enough not to have the issue I was thinking of.

---

<div class="post-metadata">

**Author:** ![liuyis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liuyis](https://forums.developer.nvidia.com/u/liuyis)\
**Post date:** [April 4, 2024, 4:33pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/3 "2024-04-04T16:33:07Z")

</div>

> [@romina.72](#):
>
> am not able to see any GPU traces, only CPU ones

@romina.72 Do you mean you can see the CPU-side CUDA API calls, but missing the GPU side kernel activties? Or just not seeing anything related to CUDA at all?

---

<div class="post-metadata">

**Author:** ![romina.72](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@romina.72](https://forums.developer.nvidia.com/u/romina.72)\
**Post date:** [April 4, 2024, 5:45pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/4 "2024-04-04T17:45:40Z")

</div>

Actually sorry I’m not sure if I can see the CPU-side CUDA API calls, it’s possible I’m not seeing anything related to CUDA at all. I also get the same error for NVTX traces.

I do know the program is using the GPU because I can see the GPU usage go up on nvidia-smi when I run the program.

---

<div class="post-metadata">

**Author:** ![liuyis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liuyis](https://forums.developer.nvidia.com/u/liuyis)\
**Post date:** [April 4, 2024, 6:58pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/5 "2024-04-04T18:58:27Z")

</div>

Could you share the report file or take a screenshot of the timeline?

> I also get the same error for NVTX traces.

Do you know if the application contains NVTX annotations?

---

<div class="post-metadata">

**Author:** ![romina.72](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@romina.72](https://forums.developer.nvidia.com/u/romina.72)\
**Post date:** [April 5, 2024, 6:50pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/6 "2024-04-05T18:50:45Z")

</div>

Yes, it contains NVTX annotations. Sharing the report file here:  
[report9.nsys-rep.zip](https://forums.developer.nvidia.com/uploads/short-url/8IJNQC7IXrfPr864mwamRDWsANL.zip) (853.8 KB)

---

<div class="post-metadata">

**Author:** ![liuyis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liuyis](https://forums.developer.nvidia.com/u/liuyis)\
**Post date:** [April 5, 2024, 7:51pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/7 "2024-04-05T19:51:17Z")

</div>

From this report, I can actually see both CUDA API calls from CPU side, and CUDA HW activities from GPU side:

_(screenshot removed)_

Are you expecting something other than that?

---

<div class="post-metadata">

**Author:** ![romina.72](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@romina.72](https://forums.developer.nvidia.com/u/romina.72)\
**Post date:** [April 5, 2024, 8:07pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/8 "2024-04-05T20:07:12Z")

</div>

That is strange because my GPU is RTX 2070 and I’m using python 3.12 (not 3.10 as shown in the screenshot).

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/9/8/5/985e8d14757caedab95c0385083be08fa8245948.png)

Here is what I see:

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/a/7/0/a7064c8fb22b0f507043632b62721538a76f4e1f.png)

---

<div class="post-metadata">

**Author:** ![liuyis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liuyis](https://forums.developer.nvidia.com/u/liuyis)\
**Post date:** [April 5, 2024, 8:13pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/9 "2024-04-05T20:13:19Z")

</div>

May bad - I opened a different report just with the same file name. Sorry for the confusion.

---

<div class="post-metadata">

**Author:** ![liuyis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liuyis](https://forums.developer.nvidia.com/u/liuyis)\
**Post date:** [April 5, 2024, 8:32pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/10 "2024-04-05T20:32:02Z")

</div>

I noticed you mentioned

> [@romina.72](#):
>
> I do not have sudo permissions on this machine.

Just to clarify, do you mean you don’t have Administrator privilege on this Windows system?

AFAIK Nsys CLI requires Administrator privilege, and Nsys GUI will trigger an UAC prompt if you are profiling on a local Window system. I tried locally that if I decline the UAC promot, the target cannot be connected successfully. Did you see the UAC prompt?

Since CUDA and NVTX are both not working, I’m wondering if it’s related to insufficient permission. @ushomroni @dofek Do you know if CUDA and NVTX can work on Windows when user doesn’t have Administrator privilege?

---

<div class="post-metadata">

**Author:** ![romina.72](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@romina.72](https://forums.developer.nvidia.com/u/romina.72)\
**Post date:** [April 5, 2024, 8:57pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/11 "2024-04-05T20:57:00Z")

</div>

Yes sorry I meant I don’t have administrator privileges. I am using the GUI on a local machine but I did not get a UAC prompt.

I’m wondering if the log I attached earlier shows if permissions are the problem? I suspect they might be as well since there were some “permission denied” messages in the log.  
If this is the case is there a way I can still profile my program?

---

<div class="post-metadata">

**Author:** ![liuyis](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@liuyis](https://forums.developer.nvidia.com/u/liuyis)\
**Post date:** [April 5, 2024, 9:09pm UTC](https://forums.developer.nvidia.com/t/no-cuda-events-collected/288543/12 "2024-04-05T21:09:38Z")

</div>

In the log file, I’m not seeing anything from the injection library, so I’m suspecting if Administrator privilege is required to inject the target process on Windows. CUDA and NVTX trace are both based on process injection, so if process injection requires admin permission then they probably won’t work.

I’ve looped in our Windows team to confirm. If that’s the case, they should also be able to suggest if any WAR can be used.
