robust OpenCL device selection