How can I run glmark2 on the dedicated GPU?

Solution 1:

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

DRI_PRIME=1 glmark2