8

My laptop has a dedicated GPU, it is an AMD Radeon HD 6300. How can I test it with glmark2?
By default it is using the iGPU. glmark2 man page doesn't show an option to choose the dGPU.

2 Answers 2

11

Launch the benchmark using the dGPU with the DRI_PRIME=1 option:

DRI_PRIME=1 glmark2

Edit : This answer is from mid 2018 when Xorg was the default session.

This means the solution is valid if the system is running a Xorg session.

8
  • This works perfectly. Thank you @cl-netbox
    – user433732
    Jul 6, 2018 at 11:06
  • 3
    didn't work for me on ubuntu 21.10
    – fccoelho
    Mar 12, 2022 at 20:30
  • 2
    Also did not work on (x)ubuntu 22.04 LTS
    – demaniak
    Jan 27, 2023 at 8:10
  • 1
    didn't work for me on ubuntu 22.04. answer by @demaniak did work.
    – rrosa
    Aug 11, 2023 at 20:58
  • 1
    @rrosa (and demaniak and fccoelho) : You are running a Wayland session, correct ? Didn't you see that I posted the answer five years ago ? At that time the default session was Xorg ! So - "didn't work for me" (and a downvote) might not be appropriate ... right ? :)
    – cl-netbox
    Aug 12, 2023 at 12:15
4

I'm on Xubuntu (22.04 Jammy). My laptop has an AMD Integrated graphics chip, and a nVidia RTX3070 discrete graphics accelerator.

I have the proprietary nVidia drivers installed.

This worked for me:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glmark2

Ref: How NVIDIA On-Demand option works in NVIDIA X Server Settings?

Note: I should also maybe mention:

  • BIOS graphics is set to Hybrid
  • in nvidia-settings it is set to "On Demand"
2
  • 1
    One weird thing though - the glmark2 score when run with the AMD integrated graphics, was for some reason significantly higher than when running with the above settings. Like 9806 vs 2537.
    – demaniak
    Jan 27, 2023 at 8:55
  • this has crashed my Xorg session :-o
    – Palo
    Mar 13, 2023 at 15:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .