4

I am trying to benchmark an Intel HD Graphics 520 (integrated) and a AMD Radeon R5 M330 (dedicated), but I am not able to specify for Unigine Superposition which GPU to use. Here is the result window from a benchmark I ran: Unigine Superposition Results As you can notice both GPUs are listed, but since the listed driver is i915, I can say the GPU that was benchmarked is the Intel, and another clue is that in the main window for changing the benchmark settings (resolution, shader quality, textures quality, etc...) It says there are 3GBs of VRAM, and in this result window it says that the Intel GPU has 3GBs, so I am sure it is benchmarking the Intel GPU.

Now the question is:

How can I benchmark the AMD GPU? I tried using DRI_PRIME=1 which always works with other software of all kinds, but it didn't work with this benchmark. When I use DRI_PRIME=1 I got almost the same result (753 to be exact), and the same details under Configuration. Also 3GBs of Graphics RAM in the main window, which confirms it is still using the Intel GPU.

  • Ubuntu 17.04
  • Intel HD Graphics 520 / AMD Radeon R5 M330
  • Mesa 17.3.0-devel - padoka PPA
Tooniis
  • 1,602

3 Answers3

1

Try adding DRI_PRIME=1 to your ~/.bashrc and then run it from command line on a newly opened terminal after modifying ~/.bashrc. In theory, if Superposition is spawning other processes they might now have DRI_PRIME set. Keep in mind that this will set DRI_PRIME=1 for everything you run which might not be the behavior you want but might fix it while you run Superposition.

You can easily add it to the end of ~/.bashrc by opening it with a text editor or from a terminal with this command: echo "DRI_PRIME=1" | tee -a ~/.bashrc

To remove it you can open it with a text editor and delete it or from a terminal run: sed -i '/DRI_PRIME=1/d' ~/.bashrc

0

Ubuntu uses the integrated graphics by default and you are going to need to follow a similar procedure the one described here but adapted for a Radeon card.

First you'll need to install a driver for the AMD Radeon R5 M330. There are a few options out there and your bench mark will be tied to the driver you use, expect variations among them. See benchmark example here.

From most searches it seems like it is not officially supported, AMD support site lists R5 200, 300 and 340 but no 330; but from here it seems like you could just use the fglrx driver.

I don't have a Radeon card or a good suggestion on which driver to use. If you don't know what to install, personally I would start by installing the "recommended" from the output of sudo ubuntu-drivers devices as described in the first guide referenced if it returns something.

0

Using radeontop I found that in fact, it was using the Radeon GPU when I used DRI_PRIME=1. As for it showing 3GBs of VRAM (which when using glxinfo shows that the Intel GPU has), I guess it is a bug in the benchmark itself, or it has been programmed to always show the VRAM of the main GPU.

Tooniis
  • 1,602