Profiling on Jetson with CUDA.jl

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

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?

Hi, @CaG21

The doc said " You must enable GPU profiler support and profile as sudo or the root user for access to GPU Performance Counters."

Do you mean there is no link provided here ? If yes, I will check with the poster.

Yes, plus those are only for DRIVE OS. I do not know how much the instructions apply to other platforms (like the Jetson)

Thanks for clarification ! I will check internally.