Eclipse Nsight Remote Debugging Issue

I configured recently installed Ubuntu 16.04 with JetPack 4.2 and installed both host and target packages. Samples work like a charm for both host and target. I used Nsight for remote debugging a particles project but could not succeeded.

Local --> Build (OK) , RUN (OK) , DEBUGGING (OK)
Remote --> Sync Build (OK), RUN (OK), DEBUGGING (FAILED)

I used particles project that comes with cuda 10 by default. By failing means remote debugger opens a blank opengl window which is transparent and nothing happens. Debugging hangs and any kernel launches.

I read somewhere in forum about remote debugging issue of Xavier. Is it the same problem that i faced with ? Or opengl projects requires another way of debugging ?

ps: hdmi monitor connected to xavier

Hi,

Could you try if this command helps?

export DISPLAY=:0

To open a window remotely, you will need to redirect the window into the local monitor.
You can set the environment variable at
properties -> Run/Debug Settings -> Edit -> Environment -> New …

Thanks.

Hi,

I did but it but nothing changed. I dont understand why should i redirect the window to my host monitor. I have seperate HDMI monitor for Xavier and it works with any problem. My issue is about remote debugging. If i run it it works but when i debug it just opens a blank transparent window. I enabled “Break on all kernel launches” option in debug monitor. No change. The last printed log to console is following

CUDA Particles Simulation Starting…

NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.

grid: 64 x 64 x 64 = 262144 cells
particles: 16384
GPU Device 0: “Xavier” with compute capability 7.2

When i debug it for host configuration it launches the kernel for calcHashD function as expected.

Hi,

export DISPLAY=:0 will force the app to use the local monitor.
Does the window work normally without cuda-gdb?

Thanks.