cuda: move unknown commands reject out of switch