# Profiling CUDA kernels on the Jetson

**URL:** <https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120>\
**Category:** GPU\
**Created:** [February 20, 2025, 3:52pm UTC](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120 "2025-02-20T15:52:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaG21](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Post date:** [February 20, 2025, 3:52pm UTC](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120/1 "2025-02-20T15:52:00Z")

</div>

I am trying to profile a CUDA kernel (using CUDA.jl) on a Jetson AGX Orin DevKit. However, when I try to do so, for example by running

```julia
using CUDA
a = CUDA.rand(1024,1024,1024);
CUDA.@profile sin.(a)

```

I get the error `ERROR: CUPTIError: Insufficient privileges: You don't have permissions to profile GPU code. Please configure your system to allow all users to profile, or run Julia with elevated permissions: https://developer.nvidia.com/ERR_NVGPUCTRPERM#SolnAdminTag (code 35, CUPTI_ERROR_INSUFFICIENT_PRIVILEGES)`.  
I tried to follow the instructions in the link provided, but there are no specific instructions for a Jetson and the one for Tegra are not clear.  
Even though I am able to solve the problem using running Julia with sudo, I would like to avoid doing that, and being able to profile CUDA code without resorting on elevated permissions.  
Do you have any ideas how to solve this?

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [March 3, 2025, 7:38am UTC](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120/2 "2025-03-03T07:38:44Z")

</div>

From the documentation linked in the error message:

> - **DRIVE, Tegra and QNX** : Launch the tool with `sudo` or as the root user.

There is no alternative here. You can try complaining to NVIDIA 🙂

---

<div class="post-metadata">

**Author:** ![CaG21](https://avatars.discourse-cdn.com/v4/letter/c/c2a13f/32.png) [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Post date:** [March 3, 2025, 7:55am UTC](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120/3 "2025-03-03T07:55:07Z")

</div>

I complained, but I was looking for somebody who has found alternatives. 😃

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [March 3, 2025, 11:13am UTC](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120/4 "2025-03-03T11:13:57Z")

</div>

Am I being dense here?

> **[NVIDIA Development Tools Solutions - ERR\_NVGPUCTRPERM: Permission issue with...](https://developer.nvidia.com/nvidia-development-tools-solutions-err_nvgpuctrperm-permission-issue-performance-counters#SolnAdminTag)**
