To use the AMD Graphics card, execute this command:

DRI_PRIME=1 ./executable

If you want to run a Steam game with AMD Graphics Card, you should set the Game Launch Options on Steam with this command:

DRI_PRIME=1 %command%

To test manually if this is working, you can execute this:

glxinfo | grep "OpenGL renderer"

This command will show your Intel Graphics Card. Execute this command to see your AMD Graphics Card:

DRI_PRIME=1 glxinfo | grep "OpenGL renderer"

For example, in my case, when I execute glxinfo | grep "OpenGL renderer", my output is this: OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile

But, when I execute DRI_PRIME=1 glxinfo | grep "OpenGL renderer", my output is like this: OpenGL renderer string: Gallium 0.4 on AMD CAPE VERDE

There are other commands to test, If you want more tests:

glmark2 (use intel) and DRI_PRIME=1 glmark2 (use AMD)