Move --devices parsing to common-opencl.c.