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
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.
-
This works perfectly. Thank you @cl-netbox– user433732Jul 6, 2018 at 11:06
-
3
-
2
-
1
-
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 ? :) Aug 12, 2023 at 12:15
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"
-
1One 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.– demaniakJan 27, 2023 at 8:55
-