Changed forier to allow multiple cuda cards, and to select between them.