How to change compute device without going into preferences

Hi, I want to know if there is a way to change the compute device on the fly without going to preferences like in the bench mark addon thanks.

Attachments