}
static CLCommandQueue create(CLContext context, CLDevice device, long properties) {
int[] status = new int[1];
CLCommandQueueBinding binding = context.getPlatform().getCommandQueueBinding();
long id = binding.clCreateCommandQueue(context.ID, device.ID, properties, status, 0);
if(status[0] != CL_SUCCESS) {
throw newException(status[0], "can not create command queue on " + device +" with properties: " + Mode.valuesOf(properties));
}