Sorry to re-create this topic again. I had got busy recently.
Extend from this topic which I created. [Xavier NX] Use nbody on the DevKit.
According last suggestion, I’ve validated the nbody with the utility Xvfb, but it seems still not work so far. Would you mind to give us more advice?
lanner@lanner-desktop:~$ cd /usr/local/cuda/samples/5_Simulations/nbody lanner@lanner-desktop:/usr/local/cuda/samples/5_Simulations/nbody$ Xvfb :1 &  7220 lanner@lanner-desktop:/usr/local/cuda/samples/5_Simulations/nbody$ export DISPLAYY=:1 lanner@lanner-desktop:/usr/local/cuda/samples/5_Simulations/nbody$ ./nbody -fp64 -numbodies=1024 Run "nbody -benchmark [-numbodies=<numBodies>]" to measure performance. -fullscreen (run n-body simulation in fullscreen mode) -fp64 (use double precision floating point values for simulation) -hostmem (stores simulation data in host memory) -benchmark (run benchmark to measure performance) -numbodies=<N> (number of bodies (>= 1) to run in simulation) -device=<d> (where d=0,1,2.... for the CUDA device to use) -numdevices=<i> (where i=(number of CUDA devices > 0) to use for simulation) -compare (compares simulation results running once on the default GPU and once on the CPU) -cpu (run n-body simulation on the CPU) -tipsy=<file.bin> (load a tipsy model file for simulation) NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled. > Windowed mode > Simulation data stored in video memory > Double precision floating point simulation > 1 Devices used for simulation freeglut (./nbody): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow lanner@lanner-desktop:/usr/local/cuda/samples/5_Simulations/nbody$
There is the log file which I validated for reference.
Xavier_nbody_20220103_1634.log (32.0 KB)