Set specific GPU in a command line render

If you have multiple GPUs, is it possible to opt to use only one of them when rendering from the (Linux) command line?

I looked at the 2.79 manual and none of the command line arguments seem to deal with GPU, so I’m assuming it’s not, but I do seem to remember seeing it done somewhere.

I think it should be possible by using a python startup script. There is a command line argument for running a script after blend file loading and you could set the GPU there.

I see what you’re saying. I’ll look into it.