[Parser] Added auto-kernel detectoin