# Nsys profile exception

**URL:** <https://forums.developer.nvidia.com/t/nsys-profile-exception/342941>\
**Category:** Profiling x86 Windows Targets\
**Tags:** cuda\
**Created:** [August 23, 2025, 10:35am UTC](https://forums.developer.nvidia.com/t/nsys-profile-exception/342941 "2025-08-23T10:35:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wh3575580](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@wh3575580](https://forums.developer.nvidia.com/u/wh3575580)\
**Post date:** [August 23, 2025, 10:35am UTC](https://forums.developer.nvidia.com/t/nsys-profile-exception/342941/1 "2025-08-23T10:35:17Z")

</div>

I am a beginner in CUDA.

When I tryed to profile a CUDA program using nsys profile, I encountered the following runtime error.

 ![屏幕截图 2025-08-23 183102](https://global.discourse-cdn.com/nvidia/original/4X/7/b/2/7b2728b5e6996ba4665e7b64eff00b94684f11a6.png)

Here is some environmental information:

GPU: 5070Ti

Driver Version: 580.88

Cuda Version: 13.0

OS Version: Win11 24H2

---

<div class="post-metadata">

**Author:** ![wh3575580](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@wh3575580](https://forums.developer.nvidia.com/u/wh3575580)\
**Post date:** [August 25, 2025, 3:16pm UTC](https://forums.developer.nvidia.com/t/nsys-profile-exception/342941/2 "2025-08-25T15:16:49Z")

</div>

@rknight

---

<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:** [August 25, 2025, 8:01pm UTC](https://forums.developer.nvidia.com/t/nsys-profile-exception/342941/3 "2025-08-25T20:01:25Z")

</div>

What version of Nsight Systems are you using?

Have you tried with a CUDA sample, or is this your code?

---

<div class="post-metadata">

**Author:** ![rknight](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/rknight/32/15959_2.png) [@rknight](https://forums.developer.nvidia.com/u/rknight)\
**Post date:** [August 25, 2025, 9:51pm UTC](https://forums.developer.nvidia.com/t/nsys-profile-exception/342941/4 "2025-08-25T21:51:44Z")

</div>

Hi wh3575580,

Can you try a couple of commands to narrow down the issue?

nsys profile –sample=none –cpuctxsw=none –trace=none ./Tensor\_Add.exe  
nsys profile –sample=none –cpuctxsw=none –trace=cuda ./Tensor\_Add.exe

These commands should generate a file called reportX.nsys-rep. Try to File | Open the nsys-rep files in the Nsight Systems GUI. The first file should open but the GUI’s screen should be mostly empty since nothing significant was collected.

The 2nd file that traced CUDA should provide a CPU and GPU timeline of the CUDA behavior of your application.  
Let me know what happens.

Bob

---

<div class="post-metadata">

**Author:** ![wh3575580](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@wh3575580](https://forums.developer.nvidia.com/u/wh3575580)\
**Post date:** [August 26, 2025, 7:10am UTC](https://forums.developer.nvidia.com/t/nsys-profile-exception/342941/5 "2025-08-26T07:10:28Z")

</div>

Nsight System verison is “Nsight Systems 2025.5.1” which is the latest version available.  
I tried both Cuda Sample and my demo code that worked fine in Windows PowerShell without using “nsys profile”, and I got the same exception.

---

<div class="post-metadata">

**Author:** ![wh3575580](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@wh3575580](https://forums.developer.nvidia.com/u/wh3575580)\
**Post date:** [August 26, 2025, 7:20am UTC](https://forums.developer.nvidia.com/t/nsys-profile-exception/342941/6 "2025-08-26T07:20:57Z")

</div>

The same exception is still obtained by executing these two commands:

 ![屏幕截图 2025-08-26 151826](https://global.discourse-cdn.com/nvidia/original/4X/0/7/5/075c8c0e6e9dfc7e5ea061cb8483d878ad2f0fbd.png)

I suspect there are some reasons that I haven’t realized yet that cause nsys profile not working.
