I did well upto connecting host computer with Jetson TX2 target board (Ubuntu) using Tegra System Profiler (ver 4.0).
I want to add NVTX(Tools Extensions) to improve readability of analysis, but it’s not easy for me.
Seeing a warning message “NVTX_INJECTION64_PATH variable is missing from the environment variables of the process. Make sure the process was appropriately launched.” from Diagnostics Summary, I tried to add the variable in .bashrc or my app code using putenv(), but they all resulted in the same fail.
Finally I have found one method to add NVTX_INJECTION64_PATH env variable to my app.
It is launching my app from the profiler rather than attaching already launched app.
But my app needs root privilege, so when launched without su, it stops right away after it starts.
(But env variable missing warning as above seems not found at this time.)
So after several web searching, I have tried ““echo nvidia | sudo -S myappname” myappargs” but it fails before startup.
Could anybody help me with this problem?