added device selection to cl opcode