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.
Asked
Active
Viewed 9,787 times
8
David Foerster
- 36,890
- 56
- 97
- 151
Necktwi
- 1,087
2 Answers
12
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.
cl-netbox
- 31,491
6
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"
demaniak
- 221