You may choose to run a program with a specific GPU, prepending the application's command with DRI_PRIME=x, where x is the card priority number.