5

How can I benchmark a GPU on a machine that has no display connected to it?


I am provisioning VMs with different types of GPUs. I want to benchmark the GPUs in order to compare them. But they're (remote) VMs. There's no display.

I tried for example running glxgears in tty, but it says there's no display.

Note that these are the currently available GPUs that I can provision. They're Nvidia.

"NVIDIA Corporation TU102GL [Quadro RTX 6000/8000] (rev a1)"
"NVIDIA Corporation TU104GL [Tesla T4] (rev a1)"

This reference has some ways to benchmark a GPU, but they require a display.

  • sudo apt install mesa-utils
    glxgears
    
  • sudo apt-get install glmark2
    glmark2
    
842Mono
  • 10,070

1 Answers1

0

Try to setup a virtual display. You can do this by following this answer: https://askubuntu.com/a/1111898/1737085