preparing for multi-device cuda